|
CGVIS Utils
|
Minimal application framework for running OpenGL or WebGL demos. More...
#include <string>#include "GLEnv.h"#include "GLProgram.h"#include "GLArray.h"#include "GLBuffer.h"#include "GLTexture2D.h"#include "Image.h"#include "GLAppKeyTranslation.h"Go to the source code of this file.
Classes | |
| class | GLApp |
| Simple app runner with a GL context, stock shaders, and draw helpers. More... | |
Enumerations | |
| enum class | LineDrawType { LIST , STRIP , LOOP } |
| Line primitive topology for drawLines(). More... | |
| enum class | TrisDrawType { LIST , STRIP , FAN } |
| Triangle primitive topology for drawTriangles(). More... | |
Minimal application framework for running OpenGL or WebGL demos.
Provides a small, cross‑platform wrapper around GLEnv (GLFW+GLEW on desktop, Emscripten on the web) and a set of convenience methods to draw points, lines and textured quads, as well as to manage a few built‑in shader programs. Subclass GLApp and override init(), draw(), animate(), and input callbacks to build an interactive sketch.
The class also exposes helpers to compute pixel‑correct transforms for images and to upload point‑sprite textures used by drawPoints().
|
strong |
|
strong |