Engine::Graphics::Framebuffer Class Reference Module: An example game engine / Graphical related classes
#include <Framebuffer.hpp>
Inherits from Engine::Graphics::Texture, Engine::Graphics::Handle
Name | |
---|---|
Framebuffer(int width, int height) | |
virtual | ~Framebuffer() |
virtual int | getWidth() const overrideReturns the width of the texture in pixels. |
virtual int | getHeight() const overrideReturns the height of the texture in pixels. |
virtual int | getDepth() const overrideReturns the depth of the texture in pixels. |
Public Types inherited from Engine::Graphics::Texture
Name | |
---|---|
enum class | Type { UNKNOWN, RGBA_8, RGB_8, RGBA_16, RGB_16, RGBA_32, RGB_32} |
Public Functions inherited from Engine::Graphics::Texture
Name | |
---|---|
Texture(Type type) | |
virtual | ~Texture() =default |
bool | isLoaded() const |
Protected Attributes inherited from Engine::Graphics::Texture
Name | |
---|---|
bool | loaded |
Type | type |
Public Functions inherited from Engine::Graphics::Handle
Name | |
---|---|
Handle() =default | |
virtual | ~Handle() =default |
int | getHandle() const |
Protected Attributes inherited from Engine::Graphics::Handle
Name | |
---|---|
int | handle |
Framebuffer(
int width,
int height
)
virtual ~Framebuffer()
virtual int getWidth() const override
Returns the width of the texture in pixels.
Return: Width in pixels
Reimplements: Engine::Graphics::Texture::getWidth
virtual int getHeight() const override
Returns the height of the texture in pixels.
Return: Height in pixels
Reimplements: Engine::Graphics::Texture::getHeight
virtual int getDepth() const override
Returns the depth of the texture in pixels.
Return: Depth in pixels
Note: If this texture is 2D the depth is always 1 pixels
Reimplements: Engine::Graphics::Texture::getDepth
Updated on 2022-10-19 at 22:22:02 +0000