This function sets the image for the currently binded texture.
命名空间:
DSkin.OpenGL
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public void TexImage1D(
uint target,
int level,
uint internalformat,
int width,
int border,
uint format,
uint type,
byte[] pixels
)
参数
- target
- 类型:SystemUInt32
The type of texture, TEXTURE_2D or PROXY_TEXTURE_2D. - level
- 类型:SystemInt32
For mip-map textures, ordinary textures should be '0'. - internalformat
- 类型:SystemUInt32
The format of the data you are want OpenGL to create, e.g RGB16. - width
- 类型:SystemInt32
The width of the texture image (must be a power of 2, e.g 64). - border
- 类型:SystemInt32
The width of the border (0 or 1). - format
- 类型:SystemUInt32
The format of the data you are passing, e.g. RGBA. - type
- 类型:SystemUInt32
The type of data you are passing, e.g GL_BYTE. - pixels
- 类型:SystemByte
The actual pixel data.
参见