COpenGLImplementation.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ionCore.h>
5 #include <ionMath.h>
6 #include <ionGraphics.h>
7 
8 
9 namespace ion
10 {
11  namespace Graphics
12  {
13 
15  {
16 
17  public:
18 
20 
21  void UseReverseDepth(bool const ReverseDepth = true);
22  bool IsReverseDepth();
23 
26 
30 
32 
35 
37 
39 
44 
46 
47  protected:
48 
49  bool ReverseDepth = false;
50 
51  };
52  }
53 }
SharedPointer< ITexture3D > CreateTexture3D(vec3i const &Size, ITexture::EMipMaps const MipMaps, ITexture::EFormatComponents const Components, ITexture::EInternalFormatType const Type)
Definition: COpenGLImplementation.cpp:342
SharedPointer< Graphics::IDepthBuffer > CreateDepthBuffer(vec2i const &Size)
Definition: COpenGLImplementation.cpp:282
bool ReverseDepth
Definition: COpenGLImplementation.h:49
SharedPointer< IVertexStage > CreateVertexShaderFromSource(string const &Source)
Definition: COpenGLImplementation.cpp:200
EInternalFormatType
Definition: ITexture.h:44
SharedPointer< IShader > CreateShaderProgram()
Definition: COpenGLImplementation.cpp:260
COpenGLImplementation()
Definition: COpenGLImplementation.cpp:139
void PostWindowCreationSetup()
Definition: COpenGLImplementation.cpp:174
Alternative to Pipeline State rendering. Represents the context for one or many draw calls...
Definition: IDrawContext.h:34
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
void UseReverseDepth(bool const ReverseDepth=true)
Definition: COpenGLImplementation.cpp:142
EMipMaps
Definition: ITexture.h:59
bool IsReverseDepth()
Definition: COpenGLImplementation.cpp:160
Lightweight wrapper for std::type_info that enables sorting (e.g. for use in a std::map) ...
Definition: ionClass.h:20
Definition: CWindow.h:16
SharedPointer< IIndexBuffer > CreateIndexBuffer()
Definition: COpenGLImplementation.cpp:275
SharedPointer< IVertexBuffer > CreateVertexBuffer()
Definition: COpenGLImplementation.cpp:268
SharedPointer< IPixelStage > CreatePixelShaderFromSource(string const &Source)
Definition: COpenGLImplementation.cpp:240
EFormatComponents
Definition: ITexture.h:36
Graphics::IDrawContext * CreateDrawContext()
Definition: COpenGLImplementation.cpp:288
SharedPointer< IGeometryStage > CreateGeometryShaderFromSource(string const &Source)
Definition: COpenGLImplementation.cpp:220
SharedPointer< IGraphicsContext > GetWindowContext(CWindow *Window)
Definition: COpenGLImplementation.cpp:487
void PreWindowCreationSetup()
Definition: COpenGLImplementation.cpp:165
std::shared_ptr< T > SharedPointer
Definition: ionSmartPointer.h:25
SharedPointer< ITexture2D > CreateTexture2D(vec2i const &Size, ITexture::EMipMaps const MipMaps, ITexture::EFormatComponents const Components, ITexture::EInternalFormatType const Type)
Definition: COpenGLImplementation.cpp:293
Definition: COpenGLImplementation.h:14
Definition: CGraphicsAPI.h:22
SharedPointer< ITextureCubeMap > CreateTextureCubeMap(vec2i const &Size, ITexture::EMipMaps const MipMaps, ITexture::EFormatComponents const Components, ITexture::EInternalFormatType const Type)
Definition: COpenGLImplementation.cpp:438
SharedPointer< ITexture2DArray > CreateTexture2DArray(vec3i const &Size, ITexture::EMipMaps const MipMaps, ITexture::EFormatComponents const Components, ITexture::EInternalFormatType const Type)
Definition: COpenGLImplementation.cpp:390