Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::NONE_API Class Referencefinal

#include <NoneWrapper.h>

+ Inheritance diagram for Divide::NONE_API:

Public Member Functions

 NONE_API (GFXDevice &context) noexcept
 
- Public Member Functions inherited from Divide::RenderAPIWrapper
virtual ~RenderAPIWrapper ()=default
 

Protected Member Functions

void idle (bool fast) noexcept override
 
bool drawToWindow (DisplayWindow &window) override
 
void onRenderThreadLoopStart () override
 
void onRenderThreadLoopEnd () override
 
void prepareFlushWindow (DisplayWindow &window) override
 
void flushWindow (DisplayWindow &window) override
 
bool frameStarted () override
 
bool frameEnded () override
 
ErrorCode initRenderingAPI (I32 argc, char **argv, Configuration &config) noexcept override
 
void closeRenderingAPI () noexcept override
 
void preFlushCommandBuffer (Handle< GFX::CommandBuffer > commandBuffer) override
 
void flushCommand (GFX::CommandBase *cmd) noexcept override
 
void postFlushCommandBuffer (Handle< GFX::CommandBuffer > commandBuffer) noexcept override
 
bool setViewportInternal (const Rect< I32 > &newViewport) noexcept override
 
bool setScissorInternal (const Rect< I32 > &newScissor) noexcept override
 
void onThreadCreated (const std::thread::id &threadID, bool isMainRenderThread) noexcept override
 
void initDescriptorSets () override
 
bool bindShaderResources (const DescriptorSetEntries &descriptorSetEntries) override
 
RenderTarget_uptr newRT (const RenderTargetDescriptor &descriptor) const override
 
GenericVertexData_ptr newGVD (U32 ringBufferLength, std::string_view name) const override
 
ShaderBuffer_uptr newSB (const ShaderBufferDescriptor &descriptor) const override
 
virtual bool drawToWindow (DisplayWindow &window)=0
 
virtual void onRenderThreadLoopStart ()=0
 
virtual void onRenderThreadLoopEnd ()=0
 
virtual void prepareFlushWindow (DisplayWindow &window)=0
 
virtual void flushWindow (DisplayWindow &window)=0
 
virtual bool frameStarted ()=0
 
virtual bool frameEnded ()=0
 
virtual void idle (bool fast)=0
 
virtual ErrorCode initRenderingAPI (I32 argc, char **argv, Configuration &config)=0
 
virtual void closeRenderingAPI ()=0
 
virtual void preFlushCommandBuffer (Handle< GFX::CommandBuffer > commandBuffer)=0
 
virtual void flushCommand (GFX::CommandBase *cmd)=0
 
virtual void postFlushCommandBuffer (Handle< GFX::CommandBuffer > commandBuffer)=0
 
virtual bool setViewportInternal (const Rect< I32 > &newViewport)=0
 
virtual bool setScissorInternal (const Rect< I32 > &newScissor)=0
 
virtual void onThreadCreated (const std::thread::id &threadID, bool isMainRenderThread)=0
 
virtual bool bindShaderResources (const DescriptorSetEntries &descriptorSetEntries)=0
 
virtual void initDescriptorSets ()=0
 
virtual RenderTarget_uptr newRT (const RenderTargetDescriptor &descriptor) const =0
 
virtual GenericVertexData_ptr newGVD (U32 ringBufferLength, std::string_view name) const =0
 
virtual ShaderBuffer_uptr newSB (const ShaderBufferDescriptor &descriptor) const =0
 

Private Attributes

GFXDevice_context
 
SDL_Renderer * _renderer { nullptr }
 
SDL_Surface * _background { nullptr }
 
SDL_Texture * _texture { nullptr }
 

Detailed Description

Definition at line 42 of file NoneWrapper.h.

Constructor & Destructor Documentation

◆ NONE_API()

Divide::NONE_API::NONE_API ( GFXDevice context)
noexcept

Definition at line 13 of file NoneWrapper.cpp.

Member Function Documentation

◆ bindShaderResources()

bool Divide::NONE_API::bindShaderResources ( const DescriptorSetEntries descriptorSetEntries)
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 160 of file NoneWrapper.cpp.

◆ closeRenderingAPI()

void Divide::NONE_API::closeRenderingAPI ( )
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 122 of file NoneWrapper.cpp.

◆ drawToWindow()

bool Divide::NONE_API::drawToWindow ( DisplayWindow window)
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 22 of file NoneWrapper.cpp.

◆ flushCommand()

void Divide::NONE_API::flushCommand ( GFX::CommandBase cmd)
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 134 of file NoneWrapper.cpp.

◆ flushWindow()

void Divide::NONE_API::flushWindow ( DisplayWindow window)
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 40 of file NoneWrapper.cpp.

◆ frameEnded()

bool Divide::NONE_API::frameEnded ( )
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 82 of file NoneWrapper.cpp.

◆ frameStarted()

bool Divide::NONE_API::frameStarted ( )
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 77 of file NoneWrapper.cpp.

◆ idle()

void Divide::NONE_API::idle ( bool  fast)
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 18 of file NoneWrapper.cpp.

◆ initDescriptorSets()

void Divide::NONE_API::initDescriptorSets ( )
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 165 of file NoneWrapper.cpp.

◆ initRenderingAPI()

ErrorCode Divide::NONE_API::initRenderingAPI ( I32  argc,
char **  argv,
Configuration config 
)
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 87 of file NoneWrapper.cpp.

◆ newGVD()

GenericVertexData_ptr Divide::NONE_API::newGVD ( U32  ringBufferLength,
std::string_view  name 
) const
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 175 of file NoneWrapper.cpp.

◆ newRT()

RenderTarget_uptr Divide::NONE_API::newRT ( const RenderTargetDescriptor descriptor) const
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 170 of file NoneWrapper.cpp.

◆ newSB()

ShaderBuffer_uptr Divide::NONE_API::newSB ( const ShaderBufferDescriptor descriptor) const
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 180 of file NoneWrapper.cpp.

◆ onRenderThreadLoopEnd()

void Divide::NONE_API::onRenderThreadLoopEnd ( )
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 31 of file NoneWrapper.cpp.

◆ onRenderThreadLoopStart()

void Divide::NONE_API::onRenderThreadLoopStart ( )
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 27 of file NoneWrapper.cpp.

◆ onThreadCreated()

void Divide::NONE_API::onThreadCreated ( const std::thread::id &  threadID,
bool  isMainRenderThread 
)
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 156 of file NoneWrapper.cpp.

◆ postFlushCommandBuffer()

void Divide::NONE_API::postFlushCommandBuffer ( Handle< GFX::CommandBuffer commandBuffer)
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 142 of file NoneWrapper.cpp.

◆ preFlushCommandBuffer()

void Divide::NONE_API::preFlushCommandBuffer ( Handle< GFX::CommandBuffer commandBuffer)
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 138 of file NoneWrapper.cpp.

◆ prepareFlushWindow()

void Divide::NONE_API::prepareFlushWindow ( DisplayWindow window)
overrideprotectedvirtual

Implements Divide::RenderAPIWrapper.

Definition at line 35 of file NoneWrapper.cpp.

◆ setScissorInternal()

bool Divide::NONE_API::setScissorInternal ( const Rect< I32 > &  newScissor)
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 151 of file NoneWrapper.cpp.

◆ setViewportInternal()

bool Divide::NONE_API::setViewportInternal ( const Rect< I32 > &  newViewport)
overrideprotectedvirtualnoexcept

Implements Divide::RenderAPIWrapper.

Definition at line 146 of file NoneWrapper.cpp.

Member Data Documentation

◆ _background

SDL_Surface* Divide::NONE_API::_background { nullptr }
private

Definition at line 76 of file NoneWrapper.h.

◆ _context

GFXDevice& Divide::NONE_API::_context
private

Definition at line 74 of file NoneWrapper.h.

◆ _renderer

SDL_Renderer* Divide::NONE_API::_renderer { nullptr }
private

Definition at line 75 of file NoneWrapper.h.

◆ _texture

SDL_Texture* Divide::NONE_API::_texture { nullptr }
private

Definition at line 77 of file NoneWrapper.h.


The documentation for this class was generated from the following files: