GLOverlayUI API Reference
Renderer : The 2D renderering (OpenGL renderig logic source)
Redering 2D using OpenGL logic.
- Copyright
(C) 2025 Umar Ba jUmarB@protonmail.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
-
class Renderer
- #include <renderer.H>
Dedicated for Rendering 2D Object using OpenGL logic.
Public Functions
-
void create_texture(GLuint&, int witdh, int height, GLvoid*)
-
void display(void)
display OpenGL forms in Canvas Area
-
void downscale(void)
decrease the scale produce zoom out effect
- Todo:
improve the scale precision
-
void draw(std::vector<float> points, GLuint&)
draw form on given lists of coordinates
- Parameters:
points – - a list of points
-
int getforms(void) const
retrieve bit mask for current enabling forms
- Returns:
int - forms flags bit mask
-
void init(void)
init openGL stuff
-
void projection(int xcoords, int ycoords)
apply othogonal projection when the canvas layou expand
- Parameters:
coord – - the coordinate x - y
-
Renderer() = default
default ctor
-
Renderer(int)
alternative ctor
-
void rotate_forms(float angle)
-
void scale_forms(float scale)
-
void setforms(int __form_flag_options)
enable forms by specifying the apropriate flags Multiple Forms can be enable or disable by ORing
-
void upscale(void)
increase the scale produce zoom in effect
- Todo:
improve the scale precision
-
virtual ~Renderer() = default
Default dtor.
-
void create_texture(GLuint&, int witdh, int height, GLvoid*)