Josh's Graphics Library
|
#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"
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::RenderTarget * | render_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 |
GLint activeTextureUnit = 0 |
GLfloat baseColor[4] = {1, 1, 1, 1} |
GLuint current_fbo = 0 |
bool inJ2D = false |
bool inJ3D = false |
GLfloat oldColor[4] = {0, 0, 0, 1} |
JGL::RenderTarget* render_target = nullptr |
GLint viewport[4] = {0, 0, 0, 0} |
bool wasBlendEnabled = false |
bool wasColorArrayEnabled = false |
bool wasCullFaceEnabled = false |
bool wasDepthTestEnabled = false |
bool wasTexture2DEnabled = false |
bool wasTextureCoordArrayEnabled = false |
bool wasVertexArraysEnabled = false |