factor/basis/opengl/gl/gl-docs.factor

86 lines
2.8 KiB
Factor

USING: help.syntax help.markup ;
IN: opengl.gl
ARTICLE: "opengl-low-level" "OpenGL binding"
{ $subsection "opengl-specifying-vertices" }
{ $subsection "opengl-geometric-primitives" }
{ $subsection "opengl-modeling-transformations" } ;
ARTICLE: "opengl-specifying-vertices" "Specifying Vertices"
{ $subsection glVertex2d }
{ $subsection glVertex2f }
{ $subsection glVertex2i }
{ $subsection glVertex2s }
{ $subsection glVertex3d }
{ $subsection glVertex3f }
{ $subsection glVertex3i }
{ $subsection glVertex3s }
{ $subsection glVertex4d }
{ $subsection glVertex4f }
{ $subsection glVertex4i }
{ $subsection glVertex4s }
{ $subsection glVertex2dv }
{ $subsection glVertex2fv }
{ $subsection glVertex2iv }
{ $subsection glVertex2sv }
{ $subsection glVertex3dv }
{ $subsection glVertex3fv }
{ $subsection glVertex3iv }
{ $subsection glVertex3sv }
{ $subsection glVertex4dv }
{ $subsection glVertex4fv }
{ $subsection glVertex4iv }
{ $subsection glVertex4sv } ;
ARTICLE: "opengl-geometric-primitives" "OpenGL Geometric Primitives"
{ $table
{ { $link GL_POINTS } "individual points" }
{ { $link GL_LINES } { "pairs of vertices interpreted as "
"individual line segments" } }
{ { $link GL_LINE_STRIP } "series of connected line segments" }
{ { $link GL_LINE_LOOP } { "same as above, with a segment added "
"between last and first vertices" } }
{ { $link GL_TRIANGLES }
"triples of vertices interpreted as triangles" }
{ { $link GL_TRIANGLE_STRIP } "linked strip of triangles" }
{ { $link GL_TRIANGLE_FAN } "linked fan of triangles" }
{ { $link GL_QUADS }
"quadruples of vertices interpreted as four-sided polygons" }
{ { $link GL_QUAD_STRIP } "linked strip of quadrilaterals" }
{ { $link GL_POLYGON } "boundary of a simple, convex polygon" } }
;
HELP: glBegin
{ $values { "mode"
{ "One of the " { $link "opengl-geometric-primitives" } } } } ;
HELP: glPolygonMode
{ $values { "face" { "One of the following:"
{ $list { $link GL_FRONT }
{ $link GL_BACK }
{ $link GL_FRONT_AND_BACK } } } }
{ "mode" { "One of the following:"
{ $list
{ $link GL_POINT }
{ $link GL_LINE }
{ $link GL_FILL } } } } } ;
ARTICLE: "opengl-modeling-transformations" "Modeling Transformations"
{ $subsection glTranslatef }
{ $subsection glTranslated }
{ $subsection glRotatef }
{ $subsection glRotated }
{ $subsection glScalef }
{ $subsection glScaled } ;
{ glTranslatef glTranslated glRotatef glRotated glScalef glScaled }
related-words