Menu

Helper classes

pet_cz

The OpenGL4Net library contains several classes that make the development easier:

  • RenderingContext[Win]: The class creates the RC, and allows some basic operations like make the context current or swap the buffers. It also automatically gets the addresses of OpenGL functions.
    Currently, only the windows version is provided.

  • Vector[234][fd]: These structs represents a simple vector with some basic properties (length, zero vector, etc.) and some basic functionality (component-wise operations, matrix multiplication, dot and cross product, normalization, etc.).

  • Martix[fd]: Structures representing simple matrix 4x4, with some predefined matrices (rotation, translation, scaling, ortho and perspective projection, etc.) and basic math operations (e.g., transposition, inversion).

  • Shader and Program: These classes simplifies the process of creating shaders. Each program consists of several shaders that are compiled and linked together.

  • Time: A simple class to measure the current time, length of last frame etc.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.