点击或拖拽改变大小

OpenGLTexImage2D 方法 (UInt32, Int32, UInt32, Int32, Int32, Int32, UInt32, UInt32, IntPtr)

This function sets the image for the currently binded texture.

命名空间:  DSkin.OpenGL
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public void TexImage2D(
	uint target,
	int level,
	uint internalformat,
	int width,
	int height,
	int border,
	uint format,
	uint type,
	IntPtr 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).
height
类型:SystemInt32
The height of the texture image (must be a power of 2, e.g 32).
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
类型:SystemIntPtr
The actual pixel data.
参见