|
JMGraphics
|
similar to the Buffer object, but for 3D graphics. More...
#include <JMGraphics.h>
Public Member Functions | |
| Buffer3D (float Width, float Height, JMGraphics *parentObject) | |
| Buffer3D (const Buffer3D &)=delete | |
| Buffer3D & | operator= (const Buffer3D &)=delete |
| Buffer3D (Buffer3D &&)=default | |
| Buffer3D & | operator= (Buffer3D &&)=default |
| void | beginDraw () |
| void | endDraw () |
| float | width () const |
| float | height () const |
| void | setSize (float x, float y) |
| bool | isActive () const |
| glm::mat4 | projectionMatrix () |
| returns the projection matrix used for rendering. | |
| glm::mat4 | screenCoordMatrix () |
| returns the matrix used to transform NDC to pixel coordinates | |
| void | clipStart (float value) |
| defines the closest distance to the camera that will be rendered. | |
| void | clipEnd (float value) |
| defines the farthest distance from the camera that will be rendered. | |
Public Attributes | |
| GLuint | texture = (GLuint)0 |
| JMGraphics * | parent = nullptr |
| float | fov = 0.005f |
| bool | perspectiveProjection = true |
similar to the Buffer object, but for 3D graphics.