|
| | RenderingDeviceGLES3 ()=default |
| |
| | ~RenderingDeviceGLES3 () override |
| |
| bool | initialize (SDL_Window *sdl_window) override |
| |
| void | shutdown () override |
| |
| RID | shader_create_from_source (const String &vertex_src, const String &fragment_src) override |
| |
| void | shader_destroy (RID shader) override |
| |
| RID | buffer_create (size_t size, uint32_t usage_flags, const void *data=nullptr) override |
| |
| void | buffer_update (RID buffer, size_t offset, size_t size, const void *data) override |
| |
| void | buffer_destroy (RID buffer) override |
| |
| RID | texture_create (const TextureFormat &format, void *data=nullptr) override |
| |
| void | texture_update (RID texture_rid, uint32_t mip_level, uint32_t layer, const void *data, size_t size) override |
| |
| void | texture_generate_mipmaps (RID texture_rid) override |
| |
| void | texture_destroy (RID texture_rid) override |
| |
| void | get_texture_size (RID texture_rid, uint32_t &width, uint32_t &height) override |
| |
| uint32_t | texture_get_native_handle (RID texture_rid) override |
| |
| Texture | get_texture (RID texture_rid) override |
| |
| RID | sampler_create (const SamplerState &state) override |
| |
| void | sampler_destroy (RID sampler) override |
| |
| RID | framebuffer_create (const Vector< RenderPassAttachment > &attachments) override |
| |
| void | framebuffer_destroy (RID framebuffer) override |
| |
| RID | pipeline_create (const PipelineState &state) override |
| |
| void | pipeline_destroy (RID pipeline) override |
| |
| void | begin_frame () override |
| |
| void | end_frame () override |
| |
| void | render_pass_begin (RID framebuffer, const Viewport &viewport, const Scissor &scissor) override |
| |
| void | render_pass_end () override |
| |
| void | bind_pipeline (RID pipeline) override |
| |
| void | bind_vertex_buffers (const Vector< RID > &buffers, const Vector< size_t > &offsets={}) override |
| |
| void | bind_index_buffer (RID buffer, IndexType type, size_t offset=0) override |
| |
| void | bind_uniform_buffer (uint32_t binding, RID buffer, size_t offset=0, size_t size=0) override |
| |
| void | bind_texture (uint32_t binding, RID texture, RID sampler) override |
| |
| void | push_constant (const String &name, const void *data, size_t size) override |
| |
| void | draw (uint32_t vertex_count, uint32_t instance_count=1, uint32_t first_vertex=0, uint32_t first_instance=0) override |
| |
| void | draw_indexed (uint32_t index_count, uint32_t instance_count=1, uint32_t first_index=0, int32_t vertex_offset=0, uint32_t first_instance=0) override |
| |
| void | set_viewport (const Viewport &viewport) override |
| |
| void | set_scissor (const Scissor &scissor) override |
| |
| void | clear_color (const glm::vec4 &color) override |
| |
| void | clear_depth_stencil (float depth=1.0f, uint32_t stencil=0) override |
| |
| void | swap_buffers () override |
| |
| virtual | ~RenderingDevice ()=default |
| |
| virtual void | get_drawable_size (int &width, int &height) |
| |
| | RIDAllocator ()=default |
| |
| virtual | ~RIDAllocator ()=default |
| |
| RID | allocate_rid () |
| |
Rendering device implementation using OpenGL/ES 3.
Backend:
- OpenGL ES 3.0+
- OpenGL 3.3+ (Core Profile)