fsRenderCreate
The fsRenderCreateTexture creates a new texture.
Syntax
int fsRenderCreateTexture(
FsContext ctx,
int type,
int w,
int h,
int imageFlags,
const unsigned char* data,
const char* debugName
)
Members
Parameters | Description |
---|---|
ctx |
A value of type FsContext provided as an argument of the gauge callback. |
type |
The texture type: -1 for Alpha only, 2 for RGBA. |
w |
The width of the texture to create. |
h |
The height of the texture to create. |
imageFlags |
A combination - using logical or - of the following values:
|
data |
The texture data. |
debugName |
The texture name for debugging purposes. |
Return Values
This function returns a handle to the created texture (to be used by the image member of the FsPaint
structure) if it is successful, or 0 if it failed.
Remarks
N/A
See Also