Josh's Graphics Library
JGL.cpp File Reference
#include <JGL/JGL.h>
#include <glad/glad.h>
#include <J3ML/Algorithm/Bezier.hpp>
#include <JGL/logger/logger.h>
#include <J3ML/Geometry/AABB.hpp>
#include <J3ML/Geometry/Sphere.hpp>
#include <J3ML/Geometry/OBB.hpp>
#include "JGL/types/VRamList.h"
Include dependency graph for JGL.cpp:

Namespaces

namespace  JGL
 OpenGL Wrapper for rendering 2D & 3D graphics in both a 2D and 3D context.
 

Functions

void JGL::Update (const Vector2 &window_size)
 
bool JGL::MeetsRequirements ()
 Returns true if the graphics driver meets the requirements (GL Version & Extensions). More...
 
void JGL::DrawGradientLine (const Color4 &color1, const Color4 &color2, float x, float y, float w, float h, float thickness)
 
std::array< GLfloat, 16 > JGL::OpenGLPerspectiveProjectionRH (float fovY, float aspect, float z_near, float z_far)
 
float JGL::ComputeBinomial (int n, int k)
 

Variables

JGL::RenderTargetrender_target = nullptr
 
GLfloat oldColor [4] = {0, 0, 0, 1}
 
GLfloat baseColor [4] = {1, 1, 1, 1}
 
GLuint current_fbo = 0
 
GLint viewport [4] = {0, 0, 0, 0}
 
bool inJ2D = false
 
bool inJ3D = false
 
bool wasTexture2DEnabled = false
 
bool wasTextureCoordArrayEnabled = false
 
bool wasDepthTestEnabled = false
 
bool wasVertexArraysEnabled = false
 
bool wasCullFaceEnabled = false
 
bool wasBlendEnabled = false
 
bool wasColorArrayEnabled = false
 
GLint activeTextureUnit = 0
 
Vector2 JGL::wS
 
bool JGL::j3d_initialized = false
 
float JGL::j3d_far_plane = 0
 
float JGL::j3d_fov = 0
 

Variable Documentation

◆ activeTextureUnit

GLint activeTextureUnit = 0

◆ baseColor

GLfloat baseColor[4] = {1, 1, 1, 1}

◆ current_fbo

GLuint current_fbo = 0

◆ inJ2D

bool inJ2D = false

◆ inJ3D

bool inJ3D = false

◆ oldColor

GLfloat oldColor[4] = {0, 0, 0, 1}

◆ render_target

JGL::RenderTarget* render_target = nullptr

◆ viewport

GLint viewport[4] = {0, 0, 0, 0}

◆ wasBlendEnabled

bool wasBlendEnabled = false

◆ wasColorArrayEnabled

bool wasColorArrayEnabled = false

◆ wasCullFaceEnabled

bool wasCullFaceEnabled = false

◆ wasDepthTestEnabled

bool wasDepthTestEnabled = false

◆ wasTexture2DEnabled

bool wasTexture2DEnabled = false

◆ wasTextureCoordArrayEnabled

bool wasTextureCoordArrayEnabled = false

◆ wasVertexArraysEnabled

bool wasVertexArraysEnabled = false