Renderer update

-Added Renderer::GetRendererName()
-Added Renderer::GetVendorName()
-Renamed VertexArrayObject to VertexArrayObjects


Former-commit-id: 93489d5f93f8258dec0c4d8bcf72185abd7f75a8
This commit is contained in:
Lynix
2012-12-13 20:16:09 +01:00
parent 73cb237925
commit 025ed1cfd0
3 changed files with 71 additions and 41 deletions

View File

@@ -36,9 +36,9 @@ enum nzOpenGLExtension
nzOpenGLExtension_TextureArray,
nzOpenGLExtension_TextureCompression_s3tc,
nzOpenGLExtension_TextureStorage,
nzOpenGLExtension_VertexArrayObject,
nzOpenGLExtension_VertexArrayObjects,
nzOpenGLExtension_Max = nzOpenGLExtension_VertexArrayObject
nzOpenGLExtension_Max = nzOpenGLExtension_VertexArrayObjects
};
using NzOpenGLFunc = void (*)();
@@ -61,8 +61,11 @@ class NAZARA_API NzOpenGL
};
static NzOpenGLFunc GetEntry(const NzString& entryPoint);
static NzString GetRendererName();
static NzString GetVendorName();
static unsigned int GetVersion();
static bool Initialize();
static bool IsInitialized();
static bool IsSupported(nzOpenGLExtension extension);
static bool IsSupported(const NzString& string);
static bool TranslateFormat(nzPixelFormat pixelFormat, Format* format, FormatType target);