![]() |
Pioneer
|
#include <RendererGL.h>


Public Member Functions | |
| RendererOGL (SDL_Window *window, const Graphics::Settings &vs, SDL_GLContext &glContext) | |
| virtual | ~RendererOGL () override final |
| virtual const char * | GetName () const override final |
| virtual RendererType | GetRendererType () const override final |
| virtual void | WriteRendererInfo (std::ostream &out) const override final |
| virtual void | CheckRenderErrors (const char *func=nullptr, const int line=-1) const override final |
| virtual bool | SupportsInstancing () override final |
| virtual int | GetMaximumNumberAASamples () const override final |
| virtual bool | GetNearFarRange (float &near_, float &far_) const override final |
| virtual bool | BeginFrame () override final |
| virtual bool | EndFrame () override final |
| virtual bool | SwapBuffers () override final |
| virtual bool | SetRenderTarget (RenderTarget *) override final |
| virtual bool | SetScissor (ViewportExtents) override final |
| virtual bool | ClearScreen () override final |
| virtual bool | ClearDepthBuffer () override final |
| virtual bool | SetClearColor (const Color &c) override final |
| virtual bool | SetViewport (ViewportExtents v) override final |
| virtual ViewportExtents | GetViewport () const override final |
| virtual bool | SetTransform (const matrix4x4f &m) override final |
| virtual matrix4x4f | GetTransform () const override final |
| virtual bool | SetPerspectiveProjection (float fov, float aspect, float near_, float far_) override final |
| virtual bool | SetOrthographicProjection (float xmin, float xmax, float ymin, float ymax, float zmin, float zmax) override final |
| virtual bool | SetProjection (const matrix4x4f &m) override final |
| virtual matrix4x4f | GetProjection () const override final |
| virtual bool | SetWireFrameMode (bool enabled) override final |
| virtual bool | SetLightIntensity (Uint32 numlights, const float *intensity) override final |
| virtual bool | SetLights (Uint32 numlights, const Light *l) override final |
| virtual Uint32 | GetNumLights () const override final |
| virtual bool | SetAmbientColor (const Color &c) override final |
| virtual bool | FlushCommandBuffers () override final |
| virtual bool | DrawBuffer (const VertexArray *v, Material *m) override final |
| virtual bool | DrawBufferDynamic (VertexBuffer *v, uint32_t vtxOffset, IndexBuffer *i, uint32_t idxOffset, uint32_t numElems, Material *m) override final |
| virtual bool | DrawMesh (MeshObject *, Material *) override final |
| virtual bool | DrawMeshInstanced (MeshObject *, Material *, InstanceBuffer *) override final |
| virtual Material * | CreateMaterial (const std::string &, const MaterialDescriptor &, const RenderStateDesc &) override final |
| virtual Material * | CloneMaterial (const Material *, const MaterialDescriptor &, const RenderStateDesc &) override final |
| virtual Texture * | CreateTexture (const TextureDescriptor &descriptor) override final |
| virtual RenderTarget * | CreateRenderTarget (const RenderTargetDesc &) override final |
| virtual VertexBuffer * | CreateVertexBuffer (const VertexBufferDesc &) override final |
| virtual IndexBuffer * | CreateIndexBuffer (Uint32 size, BufferUsage, IndexBufferSize) override final |
| virtual InstanceBuffer * | CreateInstanceBuffer (Uint32 size, BufferUsage) override final |
| virtual UniformBuffer * | CreateUniformBuffer (Uint32 size, BufferUsage) override final |
| virtual MeshObject * | CreateMeshObject (VertexBuffer *v, IndexBuffer *i) override final |
| virtual MeshObject * | CreateMeshObjectFromArray (const VertexArray *v, IndexBuffer *i=nullptr, BufferUsage u=BUFFER_USAGE_STATIC) override final |
| virtual const RenderStateDesc & | GetMaterialRenderState (const Graphics::Material *m) override final |
| OGL::UniformBuffer * | GetLightUniformBuffer () |
| OGL::UniformLinearBuffer * | GetDrawUniformBuffer (Uint32 size) |
| OGL::RenderStateCache * | GetStateCache () |
| virtual bool | ReloadShaders () override final |
| virtual bool | Screendump (ScreendumpState &sd) override final |
| virtual bool | FrameGrab (ScreendumpState &sd) override final |
| bool | DrawMeshInternal (OGL::MeshObject *, PrimitiveType type) |
| bool | DrawMeshInstancedInternal (OGL::MeshObject *, OGL::InstanceBuffer *, PrimitiveType type) |
| bool | DrawMeshDynamicInternal (BufferBinding< OGL::VertexBuffer > vtxBind, BufferBinding< OGL::IndexBuffer > idxBind, PrimitiveType type) |
Public Member Functions inherited from Graphics::Renderer | |
| Renderer (SDL_Window *win, int width, int height) | |
| virtual | ~Renderer () |
| SDL_Window * | GetSDLWindow () const |
| float | GetDisplayAspect () const |
| int | GetWindowWidth () const |
| int | GetWindowHeight () const |
| const Light & | GetLight (const Uint32 idx) const |
| const Color & | GetAmbientColor () const |
| Texture * | GetCachedTexture (const std::string &type, const std::string &name) |
| void | AddCachedTexture (const std::string &type, const std::string &name, Texture *texture) |
| void | RemoveCachedTexture (const std::string &type, const std::string &name) |
| void | RemoveAllCachedTextures () |
| const TextureCache & | GetTextureCache () |
| Stats & | GetStats () |
Static Public Member Functions | |
| static void | RegisterRenderer () |
| static void | CheckErrors (const char *func=nullptr, const int line=-1) |
Static Public Member Functions inherited from Graphics::Renderer | |
| static constexpr size_t | GetName (std::string_view s) |
Protected Member Functions | |
| virtual void | PushState () override final |
| virtual void | PopState () override final |
Protected Attributes | |
| size_t | m_frameNum |
| Uint32 | m_numLights |
| Uint32 | m_numDirLights |
| float | m_minZNear |
| float | m_maxZFar |
| bool | m_useCompressedTextures |
| bool | m_useAnisotropicFiltering |
| std::vector< std::pair< std::string, OGL::Shader * > > | m_shaders |
| std::vector< std::unique_ptr< OGL::UniformLinearBuffer > > | m_drawUniformBuffers |
| std::unique_ptr< OGL::RenderStateCache > | m_renderStateCache |
| RefCountedPtr< OGL::UniformBuffer > | m_lightUniformBuffer |
| bool | m_useNVDepthRanged |
| OGL::RenderTarget * | m_activeRenderTarget = nullptr |
| OGL::RenderTarget * | m_windowRenderTarget = nullptr |
| std::unique_ptr< OGL::CommandList > | m_drawCommandList |
| matrix4x4f | m_modelViewMat |
| matrix4x4f | m_projectionMat |
| ViewportExtents | m_viewport |
| Color | m_clearColor |
Protected Attributes inherited from Graphics::Renderer | |
| int | m_width |
| int | m_height |
| Color | m_ambient |
| Light | m_lights [4] |
| Stats | m_stats |
| SDL_Window * | m_window |
Additional Inherited Members | |
Public Types inherited from Graphics::Renderer | |
| using | TextureCache = TextureCacheMap |
| Graphics::RendererOGL::RendererOGL | ( | SDL_Window * | window, |
| const Graphics::Settings & | vs, | ||
| SDL_GLContext & | glContext | ||
| ) |

|
finaloverridevirtual |

|
finaloverridevirtual |
Implements Graphics::Renderer.
|
static |

|
inlinefinaloverridevirtual |
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
Implements Graphics::Renderer.
| bool Graphics::RendererOGL::DrawMeshDynamicInternal | ( | BufferBinding< OGL::VertexBuffer > | vtxBind, |
| BufferBinding< OGL::IndexBuffer > | idxBind, | ||
| PrimitiveType | type | ||
| ) |

|
finaloverridevirtual |
Implements Graphics::Renderer.
| bool Graphics::RendererOGL::DrawMeshInstancedInternal | ( | OGL::MeshObject * | mesh, |
| OGL::InstanceBuffer * | inst, | ||
| PrimitiveType | type | ||
| ) |

| bool Graphics::RendererOGL::DrawMeshInternal | ( | OGL::MeshObject * | mesh, |
| PrimitiveType | type | ||
| ) |

|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
Reimplemented from Graphics::Renderer.
| OGL::UniformLinearBuffer * Graphics::RendererOGL::GetDrawUniformBuffer | ( | Uint32 | size | ) |
| OGL::UniformBuffer * Graphics::RendererOGL::GetLightUniformBuffer | ( | ) |
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
inlinefinaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
inlinefinaloverridevirtual |
Reimplemented from Graphics::Renderer.
|
inlinefinaloverridevirtual |
Implements Graphics::Renderer.
|
inlinefinaloverridevirtual |
Implements Graphics::Renderer.
|
inline |
|
inlinefinaloverridevirtual |
Implements Graphics::Renderer.
|
inlinefinaloverridevirtual |
Implements Graphics::Renderer.
|
inlinefinaloverrideprotectedvirtual |
Implements Graphics::Renderer.
|
inlinefinaloverrideprotectedvirtual |
Implements Graphics::Renderer.
|
static |

|
finaloverridevirtual |
|
finaloverridevirtual |
Reimplemented from Graphics::Renderer.
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
|
inlinefinaloverridevirtual |
Implements Graphics::Renderer.
|
finaloverridevirtual |
|
finaloverridevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |