OpenGL 3.3 core rendering on top of SDL2. Builds on sdl2.obl for the window and context; this bundle is the GL side. Compile with -lib sdl2. Layers, thinnest first: GLWindow (window and context), GL (state), Shader, Mesh, Texture2D, Light, RenderTarget, Material, Frustum, ShadowMap, PointShadow, Overlay, Transform, and Box/Scene. All public, so nothing is capped. Targets the 3.3 core profile, forward-compatible: the highest common denominator across the desktop platforms Objeck ships, since macOS caps at 4.1 core. GLES-only hardware is out of scope by construction. See docs/opengl.md for setup, a minimal program, why the calls are coarse-grained, and how to add one.
BlendFactor
Blend factors for GL->SetBlend. See its doc for the combinations worth knowing.
Items
- GL_ZERO = 0
- GL_ONE = 1
- GL_SRC_COLOR = 768
- GL_ONE_MINUS_SRC_COLOR = 769
- GL_SRC_ALPHA = 770
- GL_ONE_MINUS_SRC_ALPHA = 771
- GL_DST_ALPHA = 772
- GL_ONE_MINUS_DST_ALPHA = 773
- GL_DST_COLOR = 774
- GL_ONE_MINUS_DST_COLOR = 775