1 #ifndef RENDER_TEXTURE_H 2 #define RENDER_TEXTURE_H 5 #include <vulkan/vulkan.h> 7 #include "TextureBase.hpp" 39 void CreateCube(
int dimension,
DataType dataType, TextureWrap wrap, TextureFilter filter );
42 bool IsCube()
const {
return isCube; }
45 unsigned GetFBO()
const {
return fboId; }
49 VkFramebuffer GetFrameBuffer() {
return frameBuffer; }
50 VkImageView GetColorView() {
return color.view; }
60 VkFramebuffer frameBuffer;
62 struct FrameBufferAttachment
69 FrameBufferAttachment color;
70 FrameBufferAttachment depth;
72 VkImageLayout imageLayout;
73 VkDeviceMemory deviceMemory;
TextureFilter filter
Filtering mode.
Definition: TextureBase.hpp:110
TextureWrap wrap
Wrapping controls how coordinates outside 0-1 are interpreted.
Definition: TextureBase.hpp:108
Definition: AudioClip.hpp:4
void CreateCube(int dimension, DataType dataType, TextureWrap wrap, TextureFilter filter)
int width
Width in pixels.
Definition: TextureBase.hpp:102
DataType GetDataType() const
Definition: RenderTexture.hpp:26
static void DestroyTextures()
Destroys graphics API objects.
Render texture.
Definition: RenderTexture.hpp:12
bool IsCube() const
Definition: RenderTexture.hpp:42
void Create2D(int width, int height, DataType dataType, TextureWrap wrap, TextureFilter filter)
DataType
Data type.
Definition: RenderTexture.hpp:16
int height
Height in pixels.
Definition: TextureBase.hpp:104
Base class for textures.
Definition: TextureBase.hpp:54