jGL
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jGL::Vulkan::VulkanInstance Class Reference

#include <vulkanInstance.h>

Inheritance diagram for jGL::Vulkan::VulkanInstance:
Inheritance graph
[legend]
Collaboration diagram for jGL::Vulkan::VulkanInstance:
Collaboration graph
[legend]

Public Member Functions

 VulkanInstance (const DesktopDisplay &display)
 
 ~VulkanInstance ()
 
void finish ()
 
void text (std::string characters, glm::vec2 position, float scale, glm::vec4 colour, glm::bvec2 centre=glm::bvec2(false, false))
 
void clear ()
 
void setMSAA (uint8_t samples)
 
void setClear (glm::vec4 colour)
 
void setProjection (glm::mat4 proj)
 
void setTextProjection (glm::mat4 p)
 
void setViewport (glm::vec4 view)
 
std::shared_ptr< ParticlescreateParticles (size_t sizeHint)
 
std::shared_ptr< TexturecreateTexture (std::filesystem::path imageFile, Texture::Type type)
 
std::shared_ptr< TexturecreateTexture (std::vector< std::byte > data, Texture::Type type)
 
std::shared_ptr< SpriteRenderercreateSpriteRenderer (size_t sizeHint)
 
std::shared_ptr< ShapeRenderercreateShapeRenderer (size_t sizeHint)
 
const DevicegetDevice () const
 
const CommandgetCommand () const
 
const VkInstance & getVkInstance () const
 
const SwapchaingetSwapchain () const
 
const RenderPassgetRenderPass () const
 
const unsigned getConcurrentFrames () const
 
void beginFrame ()
 
void endFrame ()
 
void createSyncObjects ()
 
- Public Member Functions inherited from jGL::jGLInstance
 jGLInstance (glm::ivec2 res)
 
virtual ~jGLInstance ()=default
 
const bool isClosing () const
 

Additional Inherited Members

- Protected Attributes inherited from jGL::jGLInstance
glm::ivec2 resolution
 
uint8_t msaaSamples = 0
 
bool closing = false
 

Constructor & Destructor Documentation

◆ VulkanInstance()

jGL::Vulkan::VulkanInstance::VulkanInstance ( const DesktopDisplay display)

◆ ~VulkanInstance()

jGL::Vulkan::VulkanInstance::~VulkanInstance ( )

Member Function Documentation

◆ beginFrame()

void jGL::Vulkan::VulkanInstance::beginFrame ( )
virtual

Reimplemented from jGL::jGLInstance.

◆ clear()

void jGL::Vulkan::VulkanInstance::clear ( )
inlinevirtual

Implements jGL::jGLInstance.

◆ createParticles()

std::shared_ptr< Particles > jGL::Vulkan::VulkanInstance::createParticles ( size_t  sizeHint)
inlinevirtual

Implements jGL::jGLInstance.

◆ createShapeRenderer()

std::shared_ptr< ShapeRenderer > jGL::Vulkan::VulkanInstance::createShapeRenderer ( size_t  sizeHint)
inlinevirtual

Implements jGL::jGLInstance.

◆ createSpriteRenderer()

std::shared_ptr< SpriteRenderer > jGL::Vulkan::VulkanInstance::createSpriteRenderer ( size_t  sizeHint)
inlinevirtual

Implements jGL::jGLInstance.

◆ createSyncObjects()

void jGL::Vulkan::VulkanInstance::createSyncObjects ( )

◆ createTexture() [1/2]

std::shared_ptr< Texture > jGL::Vulkan::VulkanInstance::createTexture ( std::filesystem::path  imageFile,
Texture::Type  type 
)
inlinevirtual

Implements jGL::jGLInstance.

◆ createTexture() [2/2]

std::shared_ptr< Texture > jGL::Vulkan::VulkanInstance::createTexture ( std::vector< std::byte >  data,
Texture::Type  type 
)
inlinevirtual

Implements jGL::jGLInstance.

◆ endFrame()

void jGL::Vulkan::VulkanInstance::endFrame ( )
virtual

Reimplemented from jGL::jGLInstance.

◆ finish()

void jGL::Vulkan::VulkanInstance::finish ( )
inlinevirtual

Reimplemented from jGL::jGLInstance.

◆ getCommand()

const Command & jGL::Vulkan::VulkanInstance::getCommand ( ) const
inline

◆ getConcurrentFrames()

const unsigned jGL::Vulkan::VulkanInstance::getConcurrentFrames ( ) const
inline

◆ getDevice()

const Device & jGL::Vulkan::VulkanInstance::getDevice ( ) const
inline

◆ getRenderPass()

const RenderPass & jGL::Vulkan::VulkanInstance::getRenderPass ( ) const
inline

◆ getSwapchain()

const Swapchain & jGL::Vulkan::VulkanInstance::getSwapchain ( ) const
inline

◆ getVkInstance()

const VkInstance & jGL::Vulkan::VulkanInstance::getVkInstance ( ) const
inline

◆ setClear()

void jGL::Vulkan::VulkanInstance::setClear ( glm::vec4  colour)
inlinevirtual

Implements jGL::jGLInstance.

◆ setMSAA()

void jGL::Vulkan::VulkanInstance::setMSAA ( uint8_t  samples)
inlinevirtual

Reimplemented from jGL::jGLInstance.

◆ setProjection()

void jGL::Vulkan::VulkanInstance::setProjection ( glm::mat4  proj)
inlinevirtual

Implements jGL::jGLInstance.

◆ setTextProjection()

void jGL::Vulkan::VulkanInstance::setTextProjection ( glm::mat4  p)
inlinevirtual

Implements jGL::jGLInstance.

◆ setViewport()

void jGL::Vulkan::VulkanInstance::setViewport ( glm::vec4  view)
inlinevirtual

Implements jGL::jGLInstance.

◆ text()

void jGL::Vulkan::VulkanInstance::text ( std::string  characters,
glm::vec2  position,
float  scale,
glm::vec4  colour,
glm::bvec2  centre = glm::bvec2(false,false) 
)
inlinevirtual

Implements jGL::jGLInstance.


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