Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
glResources.cpp File Reference

Go to the source code of this file.

Classes

struct  Divide::anonymous_namespace{glResources.cpp}::glVertexDataIndexContainer
 

Namespaces

namespace  Divide
 Handle console commands that start with a forward slash.
 
namespace  Divide::anonymous_namespace{glResources.cpp}
 
namespace  Divide::GLUtil
 

Functions

void Divide::GLUtil::OnStartup ()
 Populate enumeration tables with appropriate API values.
 
FormatAndDataType Divide::GLUtil::InternalFormatAndDataType (const GFXImageFormat baseFormat, const GFXDataFormat dataType, const GFXImagePacking packing) noexcept
 
gl46core::GLenum Divide::GLUtil::internalTextureType (const TextureType type, const U8 msaaSamples)
 
bool Divide::GLUtil::ValidateSDL (const I32 errCode, bool assert)
 
void Divide::GLUtil::SubmitRenderCommand (const GenericDrawCommand &drawCommand, gl46core::GLenum internalFormat)
 Note: If internal format is not GL_NONE, an indexed draw is issued!
 
void Divide::GLUtil::DebugCallback (const gl46core::GLenum source, const gl46core::GLenum type, const gl46core::GLuint id, const gl46core::GLenum severity, const gl46core::GLsizei length, const gl46core::GLchar *message, const void *userParam)
 Print OpenGL specific messages.
 

Variables

static NO_DESTROY glVertexDataIndexContainer Divide::anonymous_namespace{glResources.cpp}::s_multiDrawIndexData
 
gl46core::GLuint Divide::GLUtil::s_lastQueryResult = GL_NULL_HANDLE
 
const DisplayWindow * Divide::GLUtil::s_glMainRenderWindow
 
thread_local SDL_GLContext Divide::GLUtil::s_glSecondaryContext = nullptr
 
NO_DESTROY Mutex Divide::GLUtil::s_glSecondaryContextMutex
 
std::array< gl46core::GLenum, to_base(BlendProperty::COUNT)> Divide::GLUtil::glBlendTable
 
std::array< gl46core::GLenum, to_base(BlendOperation::COUNT)> Divide::GLUtil::glBlendOpTable
 
std::array< gl46core::GLenum, to_base(ComparisonFunction::COUNT)> Divide::GLUtil::glCompareFuncTable
 
std::array< gl46core::GLenum, to_base(StencilOperation::COUNT)> Divide::GLUtil::glStencilOpTable
 
std::array< gl46core::GLenum, to_base(CullMode::COUNT)> Divide::GLUtil::glCullModeTable
 
std::array< gl46core::GLenum, to_base(FillMode::COUNT)> Divide::GLUtil::glFillModeTable
 
std::array< gl46core::GLenum, to_base(TextureType::COUNT)> Divide::GLUtil::glTextureTypeTable
 
std::array< gl46core::GLenum, to_base(PrimitiveTopology::COUNT)> Divide::GLUtil::glPrimitiveTypeTable
 
std::array< gl46core::GLenum, to_base(GFXDataFormat::COUNT)> Divide::GLUtil::glDataFormatTable
 
std::array< gl46core::GLenum, to_base(TextureWrap::COUNT)> Divide::GLUtil::glWrapTable
 
std::array< gl46core::GLenum, to_base(ShaderType::COUNT)> Divide::GLUtil::glShaderStageTable
 
std::array< gl46core::GLenum, to_base(QueryType::COUNT)> Divide::GLUtil::glQueryTypeTable