⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 types.html

📁 DirectFB的使用手册 DirectFB——建立在framebuffer基础之上的图形加速引擎
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    </TD><TD valign=top>      <font color=#404040>normalized Y coordinate </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      float    </TD><TD valign=top>      <FONT color=black><B>w;</B></FONT>    </TD><TD valign=top>      <font color=#404040>normalized width </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      float    </TD><TD valign=top>      <FONT color=black><B>h;</B></FONT>    </TD><TD valign=top>      <font color=#404040>normalized height </font>    </TD></TR>  </TABLE>        A rectangle specified by normalized coordinates.    <br><br>      E.g. using 0.0, 0.0, 1.0, 1.0 would specify the whole screen.  <br></p><p>  <a name=DFBRegion>  <font color=#70D070 size=+1>DFBRegion</font>  <br>  <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>x1;</B></FONT>    </TD><TD valign=top>      <font color=#404040>X coordinate of top-left point </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>y1;</B></FONT>    </TD><TD valign=top>      <font color=#404040>Y coordinate of top-left point </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>x2;</B></FONT>    </TD><TD valign=top>      <font color=#404040>X coordinate of lower-right point </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>y2;</B></FONT>    </TD><TD valign=top>      <font color=#404040>Y coordinate of lower-right point </font>    </TD></TR>  </TABLE>        A region specified by two points.    <br><br>      The defined region includes both endpoints.  <br></p><p>  <a name=DFBInsets>  <font color=#70D070 size=+1>DFBInsets</font>  <br>  <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>l;</B></FONT>    </TD><TD valign=top>      <font color=#404040>distance from left edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>t;</B></FONT>    </TD><TD valign=top>      <font color=#404040>distance from top edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>r;</B></FONT>    </TD><TD valign=top>      <font color=#404040>distance from right edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>b;</B></FONT>    </TD><TD valign=top>      <font color=#404040>distance from bottom edge </font>    </TD></TR>  </TABLE>        Insets specify a distance from each edge of a rectangle.    <br><br>      Positive values always mean 'outside'.  <br></p><p>  <a name=DFBTriangle>  <font color=#70D070 size=+1>DFBTriangle</font>  <br>  <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>x1;</B></FONT>    </TD><TD valign=top>      <font color=#404040>X coordinate of first edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>y1;</B></FONT>    </TD><TD valign=top>      <font color=#404040>Y coordinate of first edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>x2;</B></FONT>    </TD><TD valign=top>      <font color=#404040>X coordinate of second edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>y2;</B></FONT>    </TD><TD valign=top>      <font color=#404040>Y coordinate of second edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>x3;</B></FONT>    </TD><TD valign=top>      <font color=#404040>X coordinate of third edge </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      int    </TD><TD valign=top>      <FONT color=black><B>y3;</B></FONT>    </TD><TD valign=top>      <font color=#404040>Y coordinate of third edge </font>    </TD></TR>  </TABLE>        A triangle specified by three points.  <br></p><p>  <a name=DFBColor>  <font color=#70D070 size=+1>DFBColor</font>  <br>  <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      __u8    </TD><TD valign=top>      <FONT color=black><B>a;</B></FONT>    </TD><TD valign=top>      <font color=#404040>alpha channel </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      __u8    </TD><TD valign=top>      <FONT color=black><B>r;</B></FONT>    </TD><TD valign=top>      <font color=#404040>red channel </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      __u8    </TD><TD valign=top>      <FONT color=black><B>g;</B></FONT>    </TD><TD valign=top>      <font color=#404040>green channel </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      __u8    </TD><TD valign=top>      <FONT color=black><B>b;</B></FONT>    </TD><TD valign=top>      <font color=#404040>blue channel </font>    </TD></TR>  </TABLE>        A color defined by channels with 8bit each.  <br></p><p>  <a name="DFB_RECTANGLE_EQUAL (a,b)">  <font color=#7070D0 size=+1>DFB_RECTANGLE_EQUAL (a,b)</font>  <br>        Macro to compare two rectangles.  <br></p><p>  <a name="DFB_LOCATION_EQUAL (a,b)">  <font color=#7070D0 size=+1>DFB_LOCATION_EQUAL (a,b)</font>  <br>        Macro to compare two locations.  <br></p><p>  <a name="DFB_REGION_EQUAL (a,b)">  <font color=#7070D0 size=+1>DFB_REGION_EQUAL (a,b)</font>  <br>        Macro to compare two regions.  <br></p><p>  <a name="DFB_COLOR_EQUAL (x,y)">  <font color=#7070D0 size=+1>DFB_COLOR_EQUAL (x,y)</font>  <br>        Macro to compare two colors.  <br></p><p>  <a name="DFB_DISPLAYLAYER_IDS_MAX ">  <font color=#7070D0 size=+1>DFB_DISPLAYLAYER_IDS_MAX </font>  <br>        Maximum number of layer ids.  <br></p><p>  <a name="DFB_DISPLAYLAYER_IDS_ADD (ids,id)">  <font color=#7070D0 size=+1>DFB_DISPLAYLAYER_IDS_ADD (ids,id)</font>  <br>        Adds the id to the bitmask of layer ids.  <br></p><p>  <a name="DFB_DISPLAYLAYER_IDS_REMOVE (ids,id)">  <font color=#7070D0 size=+1>DFB_DISPLAYLAYER_IDS_REMOVE (ids,id)</font>  <br>        Removes the id from the bitmask of layer ids.  <br></p><p>  <a name="DFB_DISPLAYLAYER_IDS_HAVE (ids,id)">  <font color=#7070D0 size=+1>DFB_DISPLAYLAYER_IDS_HAVE (ids,id)</font>  <br>        Checks if the bitmask of layer ids contains the id.  <br></p><p>  <a name="DFB_DISPLAYLAYER_IDS_EMPTY (ids)">  <font color=#7070D0 size=+1>DFB_DISPLAYLAYER_IDS_EMPTY (ids)</font>  <br>        Empties (clears) the bitmask of layer ids.  <br></p><p>  <a name=DFBCooperativeLevel>  <font color=#D07070 size=+1>DFBCooperativeLevel</font>  <br>  <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DFSCL_NORMAL</font>    </TD><TD valign=top>      <font color=#404040>Normal shared access, primary surface will be the buffer of an implicitly created window at the resolution given by SetVideoMode().  </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DFSCL_FULLSCREEN</font>    </TD><TD valign=top>      <font color=#404040>Application grabs the primary layer, SetVideoMode automates layer control. Primary surface is the primary layer surface. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DFSCL_EXCLUSIVE</font>    </TD><TD valign=top>      <font color=#404040>All but the primary layer will be disabled, the application has full control over layers if desired, other applications have no input/output/control. Primary surface is the primary layer surface. </font>    </TD></TR>  </TABLE>        The cooperative level controls the super interface's behaviour      in functions like SetVideoMode or CreateSurface for the primary.  <br></p><p>  <a name=DFBDisplayLayerCapabilities>  <font color=#D07070 size=+1>DFBDisplayLayerCapabilities</font>  <br>  <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_NONE</font>    </TD><TD valign=top>      <font color=#404040></font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_SURFACE</font>    </TD><TD valign=top>      <font color=#404040>The layer has a surface that can be drawn to. This may not be provided by layers that display realtime data, e.g. from an MPEG decoder chip. Playback control may be provided by an external API. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_OPACITY</font>    </TD><TD valign=top>      <font color=#404040>The layer supports blending with layer(s) below based on a global alpha factor. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_ALPHACHANNEL</font>    </TD><TD valign=top>      <font color=#404040>The layer supports blending with layer(s) below based on each pixel's alpha value. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_SCREEN_LOCATION</font>    </TD><TD valign=top>      <font color=#404040>The layer location on the screen can be changed, this includes position and size as normalized values. The default is 0.0f, 0.0f, 1.0f, 1.0f. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_FLICKER_FILTERING</font>    </TD><TD valign=top>      <font color=#404040>Flicker filtering can be enabled for smooth output on interlaced display devices. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_DEINTERLACING</font>    </TD><TD valign=top>      <font color=#404040>The layer provides optional deinterlacing for displaying interlaced video data on progressive display devices. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_SRC_COLORKEY</font>    </TD><TD valign=top>      <font color=#404040>A specific color can be declared as transparent. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_DST_COLORKEY</font>    </TD><TD valign=top>      <font color=#404040>A specific color of layers below can be specified as the color of the only locations where the layer is visible. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_BRIGHTNESS</font>    </TD><TD valign=top>      <font color=#404040>Adjustment of brightness is supported. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_CONTRAST</font>    </TD><TD valign=top>      <font color=#404040>Adjustment of contrast is supported. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_HUE</font>    </TD><TD valign=top>      <font color=#404040>Adjustment of hue is supported. </font>    </TD></TR>    <TR><TD width=32>&nbsp;</TD><TD valign=top>      <font color=#40A040>DLCAPS_SATURATION</font>    </TD><TD valign=top>      <font color=#404040>Adjustment of saturation is supported. </font>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -