OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
OpenGLRenderer.cpp File Reference
#include "OpenGLRenderer.h"
#include <algorithm>
#include <memory>
#include <utility>
#include <map>
#include <string>
#include <tuple>
#include <glad/gl.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <imgui/backends/imgui_impl_opengl3.h>
#include <imgui/backends/imgui_impl_sdl2.h>
#include "Engine/Engine.h"
#include "Engine/EngineFileSystem.h"
#include "Engine/EngineGlobals.h"
#include "Engine/Graphics/BspRenderer.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Graphics/ImageLoader.h"
#include "Engine/Graphics/LightmapBuilder.h"
#include "Engine/Graphics/DecalBuilder.h"
#include "Engine/Objects/Decoration.h"
#include "Engine/Graphics/LightsStack.h"
#include "Engine/Graphics/Outdoor.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Graphics/ParticleEngine.h"
#include "Engine/Graphics/TextureFrameTable.h"
#include "Engine/Graphics/Viewport.h"
#include "Engine/Graphics/Vis.h"
#include "Engine/Graphics/Weather.h"
#include "Engine/Graphics/PaletteManager.h"
#include "Engine/Tables/TileTable.h"
#include "Engine/OurMath.h"
#include "Engine/Party.h"
#include "Engine/SpellFxRenderer.h"
#include "Arcomage/Arcomage.h"
#include "Engine/AssetsManager.h"
#include "Engine/EngineCallObserver.h"
#include "Library/Platform/Application/PlatformApplication.h"
#include "Library/Serialization/EnumSerialization.h"
#include "Library/Color/Colorf.h"
#include "Library/Logger/Logger.h"
#include "Library/Geometry/Size.h"
#include "Library/Image/ImageFunctions.h"
#include "Utility/String/Format.h"
#include "Utility/Memory/MemSet.h"
#include "OpenGLShader.h"

Classes

struct  linesverts
 
struct  forcepersverts
 
struct  twodverts
 
struct  GLdecalverts
 
struct  GLshaderverts
 
struct  billbverts
 

Namespaces

namespace  detail_gl_error
 
namespace  detail_fb_error
 

Macros

#define LOWORD(l)   ((unsigned short)(((std::uintptr_t)(l)) & 0xFFFF))
 

Functions

void GL_Check_Errors (void *ret, const char *name, GLADapiproc apiproc, int len_args,...)
 
void GL_Check_Framebuffer (const char *name)
 

Variables

static constexpr int DEFAULT_AMBIENT_LIGHT_LEVEL = 0
 
int uNumDecorationsDrawnThisFrame
 
RenderBillboard pBillboardRenderList [500]
 
unsigned int uNumBillboardsToDraw
 
int uNumSpritesDrawnThisFrame
 
RenderVertexSoft array_73D150 [20]
 
RenderVertexSoft VertexRenderList [50]
 
RenderVertexD3D3 d3d_vertex_buffer [50]
 
static GLuint framebuffer = 0
 
static GLuint framebufferTextures [2] = {0, 0}
 
static bool OpenGLES = false
 
linesverts lineshaderstore [2000] = {}
 
int linevertscnt = 0
 
const int MAX_FORCEPERSTORECNT { 498 }
 
forcepersverts forceperstore [MAX_FORCEPERSTORECNT] {}
 
int forceperstorecnt { 0 }
 
twodverts twodshaderstore [500] = {}
 
int twodvertscnt = 0
 
GLdecalverts decalshaderstore [10000] = {}
 
int numdecalverts { 0 }
 
const int terrain_block_scale = 512
 
const int terrain_height_scale = 32
 
GLshaderverts terrshaderstore [127 *127 *6] = {}
 
billbverts billbstore [1000] {}
 
int billbstorecnt { 0 }
 
twodverts textshaderstore [10000] = {}
 
int textvertscnt = 0
 
GLshadervertsoutbuildshaderstore [16] = { nullptr }
 
int numoutbuildverts [16] = { 0 }
 
GLshadervertsBSPshaderstore [16] = { nullptr }
 
int numBSPverts [16] = { 0 }
 

Macro Definition Documentation

◆ LOWORD

#define LOWORD (   l)    ((unsigned short)(((std::uintptr_t)(l)) & 0xFFFF))

Function Documentation

◆ GL_Check_Errors()

void GL_Check_Errors ( void *  ret,
const char *  name,
GLADapiproc  apiproc,
int  len_args,
  ... 
)

◆ GL_Check_Framebuffer()

void GL_Check_Framebuffer ( const char *  name)

Variable Documentation

◆ array_73D150

RenderVertexSoft array_73D150[20]

◆ billbstore

billbverts billbstore[1000] {}

◆ billbstorecnt

int billbstorecnt { 0 }

◆ BSPshaderstore

GLshaderverts* BSPshaderstore[16] = { nullptr }

◆ d3d_vertex_buffer

RenderVertexD3D3 d3d_vertex_buffer[50]

◆ decalshaderstore

GLdecalverts decalshaderstore[10000] = {}

◆ DEFAULT_AMBIENT_LIGHT_LEVEL

constexpr int DEFAULT_AMBIENT_LIGHT_LEVEL = 0
staticconstexpr

◆ forceperstore

◆ forceperstorecnt

int forceperstorecnt { 0 }

◆ framebuffer

GLuint framebuffer = 0
static

◆ framebufferTextures

GLuint framebufferTextures[2] = {0, 0}
static

◆ lineshaderstore

linesverts lineshaderstore[2000] = {}

◆ linevertscnt

int linevertscnt = 0

◆ MAX_FORCEPERSTORECNT

const int MAX_FORCEPERSTORECNT { 498 }

◆ numBSPverts

int numBSPverts[16] = { 0 }

◆ numdecalverts

int numdecalverts { 0 }

◆ numoutbuildverts

int numoutbuildverts[16] = { 0 }

◆ OpenGLES

bool OpenGLES = false
static

◆ outbuildshaderstore

GLshaderverts* outbuildshaderstore[16] = { nullptr }

◆ pBillboardRenderList

RenderBillboard pBillboardRenderList[500]

◆ terrain_block_scale

const int terrain_block_scale = 512

◆ terrain_height_scale

const int terrain_height_scale = 32

◆ terrshaderstore

GLshaderverts terrshaderstore[127 *127 *6] = {}

◆ textshaderstore

twodverts textshaderstore[10000] = {}

◆ textvertscnt

int textvertscnt = 0

◆ twodshaderstore

twodverts twodshaderstore[500] = {}

◆ twodvertscnt

int twodvertscnt = 0

◆ uNumBillboardsToDraw

unsigned int uNumBillboardsToDraw

◆ uNumDecorationsDrawnThisFrame

int uNumDecorationsDrawnThisFrame

◆ uNumSpritesDrawnThisFrame

int uNumSpritesDrawnThisFrame

◆ VertexRenderList

RenderVertexSoft VertexRenderList[50]