factor/basis/opengl/textures/textures-docs.factor

15 lines
657 B
Factor
Raw Normal View History

IN: opengl.textures
2009-02-19 17:54:27 -05:00
USING: help.markup help.syntax opengl.gl opengl.textures.private math alien images ;
HELP: gen-texture
{ $values { "id" integer } }
{ $description "Wrapper for " { $link glGenTextures } " to handle the common case of generating a single texture ID." } ;
HELP: delete-texture
{ $values { "id" integer } }
{ $description "Wrapper for " { $link glDeleteTextures } " to handle the common case of deleting a single texture ID." } ;
HELP: make-texture
2009-02-19 17:54:27 -05:00
{ $values { "image" image } { "id" "an OpenGL texture ID" } }
{ $description "Creates a new OpenGL texture from a pixmap image whose dimensions are equal to " { $snippet "dim" } "." } ;