Skip to content

Index of Module ln_glcore

Matthias Görges edited this page Aug 15, 2013 · 28 revisions

Module: ln_glcore

The module ln_glcore provides the an absolutely minimal OpenGL (ES) interface for rendering gui elements. This module is REQUIRED for any application with a GUI.

Note: Unless you are developing new widgets with special features, you will never need to modify or even look at this code. The only exceptions are gltrace related functions, which are used in combination when a glgui-trace widget is setup and updated.

Functions in this module:

Function Short Description
(make-gltrace w h mode vmin vmax vlo vhi) Make a graphical data trace
(gltrace-add t val) Add a new data point to a trace
(gltrace-draw t x y w h) Deprecated Draws a trace on a gui, use glgui-draw widget instead
(gltrace-update t) Update a trace
(glOrtho left right bottom top near far) Transformation that produces a parallel projection
(glColor4f r g b a) Sets a new floating point four-valued RGBA color
(glTranslatef x y z) Produces a translation by xyz
(glScalef x y z) Produces a nonuniform scaling along xyz axes
(glRotatef a x y z) Produces a rotation of angle degrees around xyz
(glVertexPointer size type stride pointer) Define an array of vertex data
(glColorPointer size type stride pointer) Define an array of colors
(glTexCoordPointer size type stride pointer) Define an array of texture coordinates
(glGenTextures n textures) Generates texture names
(glDeleteTextures n textures) Delete named textures
(glTexImage2D target level internalFormat width height border format type data) Specify a two-dimensional texture image
(glTexSubImage2D target level internalFormat width height border format type data) Specify a two-dimensional texture subimage
(glCoreInit) OpenGL initialization. Happens automatically in ln_glgui
(glCoreColor c) Set a texture color
(glCoreBegin type) Simulates an OpenGL begin call
(glCoreEnd) Simulates an OpenGL end call
(glCoreVertex2f x0 y0 . xtra) Simulate OpenGL vertex call
(glCoreTextureCreate w h data . aux) Creates a texture
(glCoreTextureWidth t) Returns the texture width
(glCoreTextureHeight t) Returns the texture height
(glCoreTextureData t) Returns texture data
(glCoreClipPush . coords) Manages a clip stack to crop textures
(glCoreTextureDraw x y w0 h0 t x1 y1 x2 y2 r . colors) Draws a rectangular texture with support for basic clipping
(glCoreTexturePolygonDraw _cx _cy points t _r) Draws a polygon shaped texture made of triangles
(glCoreTextureUpdate t) Updates texture data (for dynamic textures)
(_glCoreTextureBind t) Bind a texture
(_glCoreTextureInit t) Initialize a texture
(_glCoreTextureReset t) Reset/clears a texture entry
(glCoreTextureReset) Clear all textures

Clone this wiki locally