]> gitweb.factorcode.org Git - factor.git/blob - basis/opengl/textures/textures-docs.factor
factor: clean up whitespace in -docs files
[factor.git] / basis / opengl / textures / textures-docs.factor
1 IN: opengl.textures
2 USING: help.markup help.syntax opengl.gl opengl.textures.private math alien images ;
3
4 HELP: gen-texture
5 { $values { "id" integer } }
6 { $description "Wrapper for " { $link glGenTextures } " to handle the common case of generating a single texture ID." } ;
7
8 HELP: delete-texture
9 { $values { "id" integer } }
10 { $description "Wrapper for " { $link glDeleteTextures } " to handle the common case of deleting a single texture ID." } ;
11
12 HELP: make-texture
13 { $values { "image" image } { "id" "an OpenGL texture ID" } }
14 { $description "Creates a new OpenGL texture from a pixmap image whose dimensions are equal to " { $snippet "dim" } "." } ;