EAGL.Const (eagl v0.9.0)

View Source

Curated set of 300 OpenGL constants for 3D graphics programming. Additional constants can be added as needed from the 4,925 constants in the wx/include/gl.hrl file.

Use this module to inject OpenGL constants as module attributes.

Usage

defmodule MyModule do
  use EAGL.Const

  # Now you can use @gl_vertex_shader, @gl_triangles, @gl_texture_2d, etc.
end

Categories

This module provides constants for:

  • Shader types and compilation
  • Buffer types and usage patterns
  • Drawing primitives and polygon modes
  • Data types and formats
  • Textures and sampling
  • Blending and transparency
  • Depth and stencil testing
  • Matrices and transformations
  • Vertex attributes and arrays
  • Framebuffers and attachments
  • And much more...