|
| enum | RenderState {
INITIALIZING = 0
,
INITIALIZED
,
DRAWING
,
BLOCKED_BY_EXECUTABLE
,
BLOCKED_BY_ENGINE
,
STOPPED_BY_ENGINE
,
EXITING
} |
| |
| typedef void * | Window |
| |
| typedef void * | Display |
| |
| typedef List< Raster::Scene * > | SceneList |
| |
| typedef void GL_APIENTRY(* | GLDeleteVertexArrays_func) (GLsizei n, const GLuint *arrays) |
| |
| typedef void GL_APIENTRY(* | GLGenVertexArrays_func) (GLsizei n, GLuint *arrays) |
| |
| typedef GLboolean GL_APIENTRY(* | GLIsVertexArray_func) (GLuint array) |
| |
| typedef void GL_APIENTRY(* | GLInvalidateFramebuffer_func) (GLenum target, GLsizei numAttachments, const GLenum *attachments) |
| |
| typedef UnorderedMap< int, int > | ImplementationIntegerMap |
| |
| typedef UnorderedMap< int, HeapArray< int > > | ImplementationIntegerArrayMap |
| |
| typedef UnorderedMap< int, Vector2i > | ImplementationIntegerPairMap |
| |
| typedef UnorderedMap< int, Vector4i > | ImplementationIntegerGroupMap |
| |
| typedef UnorderedMap< int, float > | ImplementationFloatMap |
| |
| typedef UnorderedMap< int, Vector2f > | ImplementationFloatPairMap |
| |
| typedef UnorderedMap< int, Vector4f > | ImplementationFloatGroupMap |
| |
|
| void | render () |
| |
| void | renderScene (Raster::Display *pScene) |
| |
| void | initialize (Raster::GeometricBase *pObject, Raster::Scene *pScene, bool addObjectToScene) |
| |
| const StateUnorderedSet & | getStateSet () |
| |
| void | enableState (const StateUnorderedSet &stateSubSet) |
| |
| void | enableState (PipelineState glState) |
| |
| void | disableState (PipelineState glState) |
| |
| const HeapArray< String > & | getExtensions () |
| |
| void | setDepthRange (float nearClip, float farClip) |
| |
| void | setPolygonOffset (float factor, float units) |
| |
| void | setLineWidth (float width) |
| |
| void | setSampleCoverage (float value, bool invert) |
| |
| FrameBufferHandle | getRenderingFrameBuffer () |
| |
| void | bindFramebuffer (FrameBufferHandle frameBuffer) |
| |
| void | bindRenderbuffer (RenderBufferHandle renderBuffer) |
| |
| void | useProgram (Program *pProgram) |
| |
| void | setCullFaceMode (CullFace mode) |
| |
| void | setDepthTestFunction (CompareOperation function) |
| |
| void | setDepthTestWriteMask (GLuint mask) |
| |
| void | activeTextureUnit (GLuint textureUnit) |
| |
| uint | textureUnitSize () |
| |
| Handle | createShaderProgram () |
| |
| void | destroyShaderProgram (ProgramHandle handle) |
| |
| ShaderHandle | createShader (ShaderType type) |
| |
| void | destroyShader (ShaderHandle handle) |
| |
| TextureHandle | createTexture () |
| |
| HeapArray< TextureHandle > | createTextureArray (size_t size) |
| |
| void | destroyTexture (TextureHandle handle) |
| |
| void | destroyTextureArray (const HeapArray< TextureHandle > &array) |
| |
| uint | renderBufferSize () |
| |
| RenderBufferHandle | createRenderBuffer () |
| |
| HeapArray< RenderBufferHandle > | createRenderBufferArray (size_t size) |
| |
| void | destroyRenderBuffer (RenderBufferHandle handle) |
| |
| void | destroyRenderBufferArray (const HeapArray< RenderBufferHandle > &array) |
| |
| FrameBuffer * | getPresentFrameBuffer () |
| |
| FrameBufferHandle | getPresentFrameBufferHandle () |
| |
| FrameBufferHandle | createFrameBuffer () |
| |
| HeapArray< FrameBufferHandle > | createFrameBufferArray (size_t size) |
| |
| void | destroyFrameBuffer (FrameBufferHandle handle) |
| |
| void | destroyFrameBufferArray (const HeapArray< FrameBufferHandle > &array) |
| |
| VertexBufferHandle | createVertexBuffer () |
| |
| HeapArray< VertexBufferHandle > | createVertexBufferArray (size_t size) |
| |
| void | destroyVertexBuffer (VertexBufferHandle handle) |
| |
| void | destroyVertexBufferArray (const HeapArray< VertexBufferHandle > &array) |
| |
| bool | vertexArrayObjectSupport () |
| |
| VertexArrayHandle | createVertexArrayObject () |
| |
| HeapArray< VertexArrayHandle > | createVertexArrayObjectArray (size_t size) |
| |
| void | destroyVertexArrayObject (VertexArrayHandle handle) |
| |
| void | destroyVertexArrayObjectArray (const HeapArray< VertexArrayHandle > &array) |
| |
| bool | hasDepthTexture () |
| |
| void | bindTexture2D (GLuint id) |
| |
| void | bindTextureCubeMap (GLuint id) |
| |
| void | setBlendAlphaFunctions (BlendFactor sBlendFactor, BlendFactor dBlendFactor) |
| |
| void | setFrontFaceOrientation (VertexOrientation orientation) |
| |
| void | setViewport (int x, int y, int width, int height) |
| |
| void | clearColor (const Vector4f &color) |
| |
| void | bindAttributeBuffer (VertexBufferHandle vbo) |
| |
| void | bindElementBuffer (VertexBufferHandle vbo) |
| |
| void | bindVertexArray (VertexArrayHandle vao) |
| |
| uint | uniformVectorSize (GLenum type) |
| |
| uint | vertexAttributeSize () |
| |
| uint | varyingVectorSize () |
| |
| void | clearBuffers (uint mask=COLOR_BUFFER|STENCIL_BUFFER|DEPTH_BUFFER) |
| |
| void | swapBuffers () |
| |
| void | scissorBuffer (uint offsetX, uint offsetY, uint width, uint height) |
| |
| void | setStencilOperations (StencilOperation fail, StencilOperation depthFail, StencilOperation depthPass) |
| |
| void | setStencilFunctions (CompareOperation function, int value, uint mask) |
| |
| void | exportCurrentFrameToPng (const char *filename) |
| |
| bool | hasMemoryType (MemoryType memoryType) |
| |
| const VkMemoryHeap & | getMemoryHeap (uint memoryHeapIndex) |
| |
| const VkMemoryHeap & | getMemoryHeap (MemoryType memoryType) |
| |
| const VkMemoryType & | getMemoryType (uint heapIndex) |
| |
| uint | getMemoryTypeIndex (MemoryType type, uint heapIndex) |
| |
| MemoryAllocator * | getMemoryAllocator (MemoryType memoryType) |
| |
| const VkPhysicalDeviceMemoryProperties & | getPhysicalDeviceMemoryProperties () |
| |
| PixelFormat | getPresentColorFormat () |
| |
| PixelFormat | getPresentDepthFormat () |
| |
| uint | getSwapIndex () |
| |
| uint | getFrameSize () |
| |
| uint | getAdvanceFrameSize () |
| |
| VkDescriptorPool | createUniformDescriptorPool (const HeapArray< Pair< UniformDescriptorType, uint > > &descriptorType) |
| |
| VkSemaphore | createSemaphore () |
| |
| void | destroySemaphore (VkSemaphore semaphore) |
| |
| VkFence | createFence (VkFenceCreateFlags flags=0) |
| |
| void | destroyFence (VkFence semaphore) |
| |
| uint | getQueueFamilyPropertyIndex () |
| |
| VkCommandPool | createCommandPool () |
| |
| void | destroyCommandPool (VkCommandPool commandPool) |
| |
| VkCommandPool | getCommandPool () |
| |
| VkCommandBuffer | createCommandBuffer (VkCommandPool commandPool, VkCommandBufferLevel bufferLevel) |
| |
| void | destroySurface (VkSurfaceKHR surface) |
| |
| VkRenderPass | createRenderPass (FrameBuffer *pFrameBuffer, bool display) |
| |
| void | destroyRenderPass (VkRenderPass renderPass) |
| |
| VkFramebuffer | createFrameBuffer (RenderBuffer *pRenderBuffer, HeapArray< VkImageView > vkImageView, uint width, uint height) |
| |
| FrameBuffer * | getPresentFrameBuffer () |
| |
| FrameBufferHandle | getPresentFrameBufferHandle () |
| |
| FrameBufferHandle | getRenderingFrameBuffer () |
| |
| RenderBuffer * | getRenderingRenderBuffer () |
| |
| void | destroyFrameBuffer (FrameBufferHandle frameBufferHandle) |
| |
| void | destroyPipeline (VkPipeline pipeline) |
| |
| void | destroyPipelineLayout (VkPipelineLayout layout) |
| |
| void | destroyDescriptorSetLayout (VkDescriptorSetLayout layout) |
| |
| void | destroyDescriptorPool (VkDescriptorPool pool) |
| |
| void | presentQueueSubmit (Pair< uint, VkSemaphore > swapIndex) |
| |
| void | queueSubmit (CommandBuffer *pCommandBuffer) |
| |
| void | queueSubmit (const HeapArray< CommandBuffer * > &pCommandBuffer) |
| |
| void | createMipmaps (Texture *pTexture, TextureType type) |
| |
| void | createGraphicsPipeline (Program *pProgram) |
| |
| bool | hasGraphicsPipeline (Program *pProgram) |
| |
| GraphicsPipeline * | getGraphicsPipeline (Program *pProgram) |
| |
| GraphicsPipeline * | getRenderingGraphicsPipeline () |
| |
| void | destroyGraphicsPipeline (Program *pProgram) |
| |
| VkSampler | createSampler (VkImageViewType imageViewType) |
| |
| bool | hasImageSampler (TextureHandle textureHandle) |
| |
| bool | hasImageSampler (Texture *pTexture) |
| |
| VkImage | createImage (const VkImageCreateInfo &createInfo) |
| |
| VkImageView | createImageView (VkImage image, VkFormat format, TextureType textureType, uint mipLevels=1) |
| |
| void | destroyBuffer (VkBuffer buffer) |
| |
| void | destroyImage (VkImage image) |
| |
| void | destroyImageView (VkImageView view) |
| |
| void | destroySampler (VkSampler sampler) |
| |
| void | createImageSampler (Texture *pTexture, TextureType textureType) |
| |
| void | destroyImageSampler (Texture *pTexture) |
| |
| VkDescriptorImageInfo & | getImageSampler (TextureHandle textureHandle) |
| |
| RenderBuffer * | getCurrentRenderBuffer () |
| |
| void | destroyMemory (Memory *pMemory) |
| |
| VkPhysicalDevice | getPhysicalDevice () |
| |
| VkDevice | getLogicalDevice () |
| |
| const HeapArray< const char * > & | getInstanceExtensions () |
| |
| const HeapArray< const char * > & | getDeviceExtensions () |
| |
| void | setSampleCoverage (float value, bool invert) |
| |
| void | bindFramebuffer (FrameBufferHandle frameBuffer) |
| |
| void | bindRenderbuffer (RenderBuffer *pRenderBuffer) |
| |
| void | useProgram (Program *pProgram) |
| |
| Program * | getRenderingProgram () |
| |
| RenderBuffer * | getPresentRenderBuffer () |
| |
| void | activeTextureUnit (uint textureUnit) |
| |
| uint | textureUnitSize () |
| |
| ProgramHandle | createProgram () |
| |
| void | destroyProgram (ProgramHandle handle) |
| |
| ShaderHandle | createShader (ShaderType type) |
| |
| void | destroyShader (ShaderHandle shader) |
| |
| VkShaderModule | createShaderModule (const HeapArray< uint > &irCode) |
| |
| bool | hasShaderModule (Shader *pShader) |
| |
| VkShaderModule | acquireShaderModule (Shader *pShader) |
| |
| void | releaseShaderModule (Shader *pShader) |
| |
| void | destroyShaderModule (VkShaderModule handle) |
| |
| VkPipelineCache | getPipelineCache () |
| |
| VkPipelineCache | createPipelineCache (uint size=0, void *pBuffer=nullptr) |
| |
| void | destroyPipelineCache (VkPipelineCache pipelineCache) |
| |
| void | clearColor (const Vector4f &color) |
| |
| const VkPhysicalDeviceProperties & | getPhysicalDeviceProperties () |
| |
| const VkPhysicalDeviceFeatures & | getPhysicalDeviceFeatures () |
| |
| VkFormatProperties | getPhysicalDeviceFormatProperties (PixelFormat format) |
| |
| void | clearBuffers (uint mask=COLOR_BUFFER|STENCIL_BUFFER|DEPTH_BUFFER) |
| |
| void | swapBuffers () |
| |
| void | setDepthRange (float nearClip, float farClip) |
| |
| void | exportCurrentFrameToPng (const char *filename) |
| |
|
| static void | initialize (UintRectangle rect, int argc, char **argv) |
| |
| static Application * | instance () |
| |
| static Thread::id | getRenderThreadID () |
| |
| static RenderState | getState () |
| |
| static void | setAppPath (const char *appPath) |
| |
| static void | setFontPath (const char *appPath) |
| |
| static void | setImagePath (const char *appPath) |
| |
| static void | setSoundPath (const char *appPath) |
| |
| static void | setIqmPath (const char *appPath) |
| |
| static void | setConfigPath (const char *appPath) |
| |
| static void | setAppName (const char *name) |
| |
| static const String & | getAppName () |
| |
| static const String & | getAppPath () |
| |
| static const String & | getFontPath () |
| |
| static const String & | getImagePath () |
| |
| static const String & | getSoundPath () |
| |
| static const String & | getIqmPath () |
| |
| static const String & | getConfigPath () |
| |
| static void | drawFrame () |
| |
| static void | addFrameHandler (Schedule::Frame *pPreRenderHandler, Schedule::RenderSchedule renderSchedule) |
| |
| static void | addAnimation (Schedule::Frame *pFrameHandler) |
| |
| static void | addFrameTask (Schedule::Task *pFrameTask) |
| |
| static void | removeFrameHandler (Schedule::Frame *pPreRenderHandler, Schedule::RenderSchedule renderSchedule) |
| |
| static void | removeAnimation (Schedule::Frame *pFrameHandler) |
| |
| static void | removeFrameTask (Schedule::Task *pFrameTask) |
| |
| static void | resize (uint width, uint height) |
| |
| static void | run () |
| |
| static void | stop () |
| |
| static void | resume () |
| |
| static void | exit () |
| |
| static uint | getWidth () |
| |
| static uint | getHeight () |
| |
| static float | getAspectRatio () |
| |
| static double | currentTimeInSeconds () |
| |
| static unsigned long | currentTimeInUSeconds () |
| |
| static uint | getFrameRate () |
| |
| static void | calculateFrameRate () |
| |
| static void | displayFrameRate () |
| |
| static const List< Raster::Display * > & | getDisplaySceneList () |
| |
| static void | addScene (Raster::Display *pScene) |
| |
| static void | removeScene (Raster::Display *pScene) |
| |
| static void | sendEvent (const Event &event) |
| |
| static Vector4f | getBackgroundColor () |
| |
| static void | setBackgroundColor (const Vector4f &color) |
| |
| static void | addEventHandler (EventHandler *pObject) |
| |
| static void | removeEventHandler (EventHandler *pObject) |
| |
| static bool | doesFileExist (const char *filename) |
| |
| static size_t | getFileSize (const char *filename) |
| |
| template<typename T > |
| static T * | allocAndFetchFileData (const char *filename, size_t &dataSize) |
| |
| template<typename T > |
| static T * | allocAndFetchPartialFileData (const char *filename, size_t dataSize) |
| |
| template<typename T > |
| static void | writeFileData (const char *filename, T *pData, size_t dataSize) |
| |
| template<typename T > |
| static void | writeFileData (const char *filename, Initializer< T * > pData, Initializer< size_t > dataSize) |
| |
| static Handle | loadSound (const char *filename) |
| |
| static bool | isPlaying (Handle handle) |
| |
| static void | playSound (Handle handle, bool loop=false, bool fadeIn=false) |
| |
| static void | stopSound (Handle handle, bool fadeOut=false) |
| |
| static void | setVolume (float volume) |
| |
| static void | addTimer (Timer *pTimer) |
| |
| static void | removeTimer (Timer *pTimer) |
| |
| static bool | isLibraryLoaded (const char *library) |
| |
| static void | loadLibrary (const char *library) |
| |
| static void | unloadLibrary (const char *library) |
| |
This class abstracts-away user callbacks, events, and window-management.