DDraceNetwork Docs
graphics_threaded.h File Reference
#include <base/system.h>
#include <engine/graphics.h>
#include <engine/shared/config.h>
#include <atomic>
#include <cstddef>
#include <mutex>
#include <string>
#include <vector>
Include dependency graph for graphics_threaded.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CCommandBuffer
 
class  CCommandBuffer::CBuffer
 
struct  CCommandBuffer::SCommand
 
struct  CCommandBuffer::SState
 
struct  CCommandBuffer::SCommand_Clear
 
struct  CCommandBuffer::SCommand_Signal
 
struct  CCommandBuffer::SCommand_RunBuffer
 
struct  CCommandBuffer::SCommand_Render
 
struct  CCommandBuffer::SCommand_RenderTex3D
 
struct  CCommandBuffer::SCommand_CreateBufferObject
 
struct  CCommandBuffer::SCommand_RecreateBufferObject
 
struct  CCommandBuffer::SCommand_UpdateBufferObject
 
struct  CCommandBuffer::SCommand_CopyBufferObject
 
struct  CCommandBuffer::SCommand_DeleteBufferObject
 
struct  CCommandBuffer::SCommand_CreateBufferContainer
 
struct  CCommandBuffer::SCommand_UpdateBufferContainer
 
struct  CCommandBuffer::SCommand_DeleteBufferContainer
 
struct  CCommandBuffer::SCommand_IndicesRequiredNumNotify
 
struct  CCommandBuffer::SCommand_RenderTileLayer
 
struct  CCommandBuffer::SCommand_RenderBorderTile
 
struct  CCommandBuffer::SCommand_RenderQuadLayer
 
struct  CCommandBuffer::SCommand_RenderText
 
struct  CCommandBuffer::SCommand_RenderQuadContainer
 
struct  CCommandBuffer::SCommand_RenderQuadContainerEx
 
struct  CCommandBuffer::SCommand_RenderQuadContainerAsSpriteMultiple
 
struct  CCommandBuffer::SCommand_TrySwapAndReadPixel
 
struct  CCommandBuffer::SCommand_TrySwapAndScreenshot
 
struct  CCommandBuffer::SCommand_Swap
 
struct  CCommandBuffer::SCommand_VSync
 
struct  CCommandBuffer::SCommand_MultiSampling
 
struct  CCommandBuffer::SCommand_Update_Viewport
 
struct  CCommandBuffer::SCommand_Texture_Create
 
struct  CCommandBuffer::SCommand_Texture_Destroy
 
struct  CCommandBuffer::SCommand_TextTextures_Create
 
struct  CCommandBuffer::SCommand_TextTextures_Destroy
 
struct  CCommandBuffer::SCommand_TextTexture_Update
 
struct  CCommandBuffer::SCommand_WindowCreateNtf
 
struct  CCommandBuffer::SCommand_WindowDestroyNtf
 
class  IGraphicsBackend
 
class  CGraphics_Threaded
 
struct  CGraphics_Threaded::SVertexArrayInfo
 
struct  CGraphics_Threaded::SQuadContainer
 
struct  CGraphics_Threaded::SQuadContainer::SQuad
 

Typedefs

typedef std::function< const char *(const char *, const char *)> TTranslateFunc
 

Enumerations

enum  EGraphicsBackendErrorCodes {
  GRAPHICS_BACKEND_ERROR_CODE_UNKNOWN = -1 , GRAPHICS_BACKEND_ERROR_CODE_NONE = 0 , GRAPHICS_BACKEND_ERROR_CODE_GL_CONTEXT_FAILED , GRAPHICS_BACKEND_ERROR_CODE_GL_VERSION_FAILED ,
  GRAPHICS_BACKEND_ERROR_CODE_SDL_INIT_FAILED , GRAPHICS_BACKEND_ERROR_CODE_SDL_SCREEN_REQUEST_FAILED , GRAPHICS_BACKEND_ERROR_CODE_SDL_SCREEN_INFO_REQUEST_FAILED , GRAPHICS_BACKEND_ERROR_CODE_SDL_SCREEN_RESOLUTION_REQUEST_FAILED ,
  GRAPHICS_BACKEND_ERROR_CODE_SDL_WINDOW_CREATE_FAILED
}
 

Functions

IGraphicsBackendCreateGraphicsBackend (TTranslateFunc &&TranslateFunc)
 

Variables

constexpr int CMD_BUFFER_DATA_BUFFER_SIZE = 1024 * 1024 * 2
 
constexpr int CMD_BUFFER_CMD_BUFFER_SIZE = 1024 * 256
 

Typedef Documentation

◆ TTranslateFunc

typedef std::function<const char *(const char *, const char *)> TTranslateFunc

Enumeration Type Documentation

◆ EGraphicsBackendErrorCodes

Enumerator
GRAPHICS_BACKEND_ERROR_CODE_UNKNOWN 
GRAPHICS_BACKEND_ERROR_CODE_NONE 
GRAPHICS_BACKEND_ERROR_CODE_GL_CONTEXT_FAILED 
GRAPHICS_BACKEND_ERROR_CODE_GL_VERSION_FAILED 
GRAPHICS_BACKEND_ERROR_CODE_SDL_INIT_FAILED 
GRAPHICS_BACKEND_ERROR_CODE_SDL_SCREEN_REQUEST_FAILED 
GRAPHICS_BACKEND_ERROR_CODE_SDL_SCREEN_INFO_REQUEST_FAILED 
GRAPHICS_BACKEND_ERROR_CODE_SDL_SCREEN_RESOLUTION_REQUEST_FAILED 
GRAPHICS_BACKEND_ERROR_CODE_SDL_WINDOW_CREATE_FAILED 

Function Documentation

◆ CreateGraphicsBackend()

IGraphicsBackend * CreateGraphicsBackend ( TTranslateFunc &&  TranslateFunc)

Variable Documentation

◆ CMD_BUFFER_CMD_BUFFER_SIZE

constexpr int CMD_BUFFER_CMD_BUFFER_SIZE = 1024 * 256
constexpr

◆ CMD_BUFFER_DATA_BUFFER_SIZE

constexpr int CMD_BUFFER_DATA_BUFFER_SIZE = 1024 * 1024 * 2
constexpr