|
|
Reference Manual - 1.0.1 | ||
| |||
No summary yet...
| Methods of IDirectFBSurface | ||
|---|---|---|
|
Retrieving information 回复信息 |
GetCapabilities |
Return the capabilities of this surface.
返回这个表面的属性。 |
| GetPosition |
Get the surface's position in pixels.
获取表面的位置以像素为单位。 | |
| GetSize |
Get the surface's width and height in pixels.
获取表面的宽度和高度以像素为单位。 | |
| GetVisibleRectangle |
Created sub surfaces might be clipped by their parents, this function returns the resulting rectangle relative to this surface. 被创建的子表面也许通过他们的父表面被剪切,这个函数返回这个表面与矩形关系的结果。 |
|
| GetPixelFormat |
Get the current pixel format. 获取当前的像素格式。 | |
| GetAccelerationMask |
Get a mask of drawing functions that are hardware accelerated with the current settings. 获得画图函数的一个掩码,即是当前设置被硬件加速。 | |
| Palette & Alpha Ramp | GetPalette |
Get access to the surface's palette. 获取访问这个表面的调色板。 |
| SetPalette |
Change the surface's palette. 改变表面的调色板。 | |
| SetAlphaRamp |
Set the alpha ramp for formats with one or two alpha bits. 用一或两位设置alpha通道格式。 | |
| Buffer operations | Lock |
Lock the surface for the access type specified.
用被指定的访问类型锁住这个表面。 |
| GetFramebufferOffset |
Returns the framebuffer offset of a locked surface. 返回一个被锁表面的framebuffer偏移。 | |
| Unlock |
Unlock the surface after direct access. 在direct访问后对表面开锁。 | |
| Flip |
Flip/Update surface buffers. 弹出/更新表面缓冲区。 | |
| SetField |
Set the active field. 设置活动区域。 | |
| Clear |
Clear the surface and its depth buffer if existent. 如果存在表面,清除这个表面和深度缓冲。 | |
| Drawing/blitting control | SetClip |
Set the clipping region used to limit the area for drawing, blitting and text functions. 设置clipping地方使用限制的区域画,blitting和文本函数。 |
| GetClip |
Get the clipping region used to limit the area for drawing, blitting and text functions. 获得clipping区域用来限制绘画区域,blitting和文本函数。 | |
| SetColor |
Set the color used for drawing/text functions or alpha/color modulation (blitting functions). 设置颜色为drawing/文本函数或者alpha/颜色调节(blitting函数) | |
| SetColorIndex |
Set the color like with SetColor() but using an index to the color/alpha lookup table. 设置颜色像用SetColor(),但是用一个索引到color/alpha来查表。 | |
| SetSrcBlendFunction |
Set the blend function that applies to the source. 设置混合函数应用到源。 | |
| SetDstBlendFunction |
Set the blend function that applies to the destination. 设置混合函数应用到目的地。 | |
| SetPorterDuff |
Set the source and destination blend function by specifying a Porter/Duff rule. 通过指定一个Porter/Duff规则设置源和目地地混合函数。 |
|
| SetSrcColorKey |
Set the source color key, i.e. the color that is excluded when blitting FROM this surface TO another that has source color keying enabled. 设置源颜色键,即当从这个表面到其它表面blitting,颜色被除去,有激活的源颜色键。 | |
| SetSrcColorKeyIndex |
Set the source color key like with SetSrcColorKey() but using an index to the color/alpha lookup table. 设置源颜色键像用SetSrcColorKey(),但是用一个索引到color/alpha来查表。 | |
| SetDstColorKey |
Set the destination color key, i.e. the only color that gets overwritten by drawing and blitting to this surface when destination color keying is enabled. 设置目的地颜色键,即当目地的颜色键是激活的,通过drawing和blitting表面只有颜色取得覆盖。 | |
| SetDstColorKeyIndex |
Set the destination color key like with SetDstColorKey() but using an index to the color/alpha lookup table. 设置目的地源颜色键像用SetDstColorKey(),但是用一个索引到color/alpha来查表。 | |
| Blitting functions | SetBlittingFlags |
Set the flags for all subsequent blitting commands. 不报有并发的blitting命令设置标志。 |
| Blit |
Blit an area from the source to this surface. Blit一个区域从一个源到表面。 | |
| TileBlit |
Blit an area from the source tiled to this surface. Blit一个区域从源平铺到表面。 | |
| BatchBlit |
Blit a bunch of areas at once. 立刻Blit一簇区域。 | |
| StretchBlit |
Blit an area scaled from the source to the destination rectangle.
Blit一个比例区域从矩形源头到目的地。 | |
| TextureTriangles |
Preliminary texture mapping support. 初步构成映射支持。 | |
| Drawing functions | SetDrawingFlags |
Set the flags for all subsequent drawing commands. 为所有并发的drawing命令设置标志。 |
| FillRectangle |
Fill the specified rectangle with the given color following the specified flags. 填充指定的矩形用给的颜色跟着指定的标志。 | |
| DrawRectangle |
Draw an outline of the specified rectangle with the given color following the specified flags. 画一个指定的矩形轮廓用给的颜色跟着指定的标志。 | |
| DrawLine |
Draw a line from one point to the other with the given color following the drawing flags. 画一条线从一个点到另一个点,用给的颜色跟着指定的标志。 | |
| DrawLines |
Draw 'num_lines' lines with the given color following the drawing flags. Each line specified by a DFBRegion. 画'num_lines'行用给的颜色跟着指定的标志。每行通过一个DFBRegion指定。 | |
| FillTriangle |
Fill a non-textured triangle. 填充一个没有构成的三角形。 | |
| FillRectangles |
Fill a bunch of rectangles with a single call. 填充一簇矩形用一个简单的调用。 | |
| FillSpans |
Fill spans specified by x and width. 通过x和width填充被指定的跨度。 | |
| Text functions | SetFont |
Set the font used by DrawString() and DrawGlyph(). You can pass NULL here to unset the font. 被用来设置字体由DrawString() 和DrawGlyph()。在这你能够传递NULL值复位字体。 |
| GetFont |
Get the font associated with a surface. 用一个表面获取联合的字体。 | |
| DrawString |
Draw a string at the specified position with the given color following the specified flags. 在指定的位置用指定的颜色和指定的标志画一个字符串。 | |
| DrawGlyph |
Draw a single glyph specified by its character code at the specified position with the given color following the specified flags. 在指定的位置用指定的颜色和指定的标志画一个单一的字符。 | |
| SetEncoding |
Change the encoding used for text rendering. 改变编码用于文本渲染。 | |
| Lightweight helpers | GetSubSurface |
Get an interface to a sub area of this surface. 获得一个表面到这个表面的子区域。 |
| OpenGL | GetGL |
Get an OpenGL context for this surface. 为表面获得一个OpenGL上下文。 |
| Debug | Dump |
Dump the contents of the surface to one or two files. 抛弃表面的内容到一或两个文件。 |
| DisableAcceleration |
Disable hardware acceleration. 使硬件加速失效。 | |
| Resources | ReleaseSource |
Release possible reference to source surface. 释放可能的参考表面源。 |
| Blitting control | SetIndexTranslation |
Set index translation table. 设置索引说明表。 |
| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License |