Skip to content

glCoreTextureCreate

Chris Petersen edited this page Oct 16, 2014 · 1 revision

glCoreTextureCreate creates a new texture. The size of data in relation to w*h determines if the texture will be an alpha channel, RGB colors, or RGBA colors+alpha.

Parameter Description
w Texture width
h Texture height
data u8vector with data points.
aux Optional: Used if GL_CLAMP is not desired

Example

Example 1: The definition of glgui:box - a 4x4 full opacity texture.

(define glgui:box (glCoreTextureCreate 4 4 (make-u8vector 16 #xff)))
Clone this wiki locally