|
| WindowAdapter (ref_ptr< Surface > surface, ref_ptr< WindowTraits > traits) |
|
| WindowAdapter (const Window &)=delete |
|
WindowAdapter & | operator= (const Window &)=delete |
|
const char * | instanceExtensionSurfaceName () const override |
|
bool | visible () const override |
|
bool | valid () const override |
|
void | resize () override |
|
void | updateExtents (uint32_t width, uint32_t height) |
| update the WindowAdapter::_extents and set windowResize to true
|
|
VkExtent2D & | extent2D () |
|
| Inherit (Args &&... args) |
|
std::size_t | sizeofObject () const noexcept override |
|
const char * | className () const noexcept override |
|
const std::type_info & | type_info () const noexcept override |
|
bool | is_compatible (const std::type_info &type) const noexcept override |
|
int | compare (const Object &rhs) const override |
|
void | accept (Visitor &visitor) override |
|
void | accept (ConstVisitor &visitor) const override |
|
void | accept (RecordTraversal &visitor) const override |
|
| Window (const Window &)=delete |
|
Window & | operator= (const Window &)=delete |
|
virtual void | releaseWindow () |
|
virtual void | releaseConnection () |
|
virtual bool | pollEvents (UIEvents &events) |
| get the list of events since the last pollEvents() call by splicing bufferEvents with polled windowing events.
|
|
ref_ptr< WindowTraits > | traits () |
|
const ref_ptr< WindowTraits > | traits () const |
|
const VkExtent2D & | extent2D () const |
|
vec4 & | clearColor () |
|
const vec4 & | clearColor () const |
|
VkSurfaceFormatKHR | surfaceFormat () |
|
VkFormat | depthFormat () |
|
VkSampleCountFlagBits | framebufferSamples () const |
|
void | setInstance (ref_ptr< Instance > instance) |
|
ref_ptr< Instance > | getInstance () |
|
ref_ptr< Instance > | getOrCreateInstance () |
|
void | setSurface (ref_ptr< Surface > surface) |
|
ref_ptr< Surface > | getSurface () |
|
ref_ptr< Surface > | getOrCreateSurface () |
|
void | setPhysicalDevice (ref_ptr< PhysicalDevice > physicalDevice) |
|
ref_ptr< PhysicalDevice > | getPhysicalDevice () |
|
ref_ptr< PhysicalDevice > | getOrCreatePhysicalDevice () |
|
void | setDevice (ref_ptr< Device > device) |
|
ref_ptr< Device > | getDevice () |
|
ref_ptr< Device > | getOrCreateDevice () |
|
void | setRenderPass (ref_ptr< RenderPass > renderPass) |
|
ref_ptr< RenderPass > | getRenderPass () |
|
ref_ptr< RenderPass > | getOrCreateRenderPass () |
|
ref_ptr< Swapchain > | getSwapchain () |
|
ref_ptr< Swapchain > | getOrCreateSwapchain () |
|
ref_ptr< Image > | getDepthImage () |
|
ref_ptr< Image > | getOrCreateDepthImage () |
|
ref_ptr< ImageView > | getDepthImageView () |
|
ref_ptr< ImageView > | getOrCreateDepthImageView () |
|
size_t | numFrames () const |
|
ref_ptr< ImageView > | imageView (size_t i) |
|
const ref_ptr< ImageView > | imageView (size_t i) const |
|
ref_ptr< Framebuffer > | framebuffer (size_t i) |
|
const ref_ptr< Framebuffer > | framebuffer (size_t i) const |
|
VkResult | acquireNextImage (uint64_t timeout=std::numeric_limits< uint64_t >::max()) |
| call vkAquireNextImageKHR to find the next imageIndex of the swapchain images/framebuffers
|
|
size_t | imageIndex (size_t relativeFrameIndex=0) const |
| get the image index for specified relative frame index, a 0 value is the current frame being rendered, 1 is the previous frame, 2 is the frame before that.
|
|
bool | debugLayersEnabled () const |
|
Frame & | frame (size_t i) |
|
Frames & | frames () |
|
| Inherit (Args &&... args) |
|
std::size_t | sizeofObject () const noexcept override |
|
const char * | className () const noexcept override |
|
const std::type_info & | type_info () const noexcept override |
|
bool | is_compatible (const std::type_info &type) const noexcept override |
|
int | compare (const Object &rhs) const override |
|
void | accept (Visitor &visitor) override |
|
void | accept (ConstVisitor &visitor) const override |
|
void | accept (RecordTraversal &visitor) const override |
|
| Object (const Object &) |
|
Object & | operator= (const Object &) |
|
template<class T > |
T * | cast () |
|
template<class T > |
const T * | cast () const |
|
virtual void | traverse (Visitor &) |
|
virtual void | traverse (ConstVisitor &) const |
|
virtual void | traverse (RecordTraversal &) const |
|
virtual void | read (Input &input) |
|
virtual void | write (Output &output) const |
|
void | ref () const noexcept |
|
void | unref () const noexcept |
|
void | unref_nodelete () const noexcept |
|
unsigned int | referenceCount () const noexcept |
|
template<typename T > |
void | setValue (const std::string &key, const T &value) |
|
void | setValue (const std::string &key, const char *value) |
| specialization of setValue to handle passing C strings
|
|
template<typename T > |
bool | getValue (const std::string &key, T &value) const |
| get specified value type, return false if value associated with key is not assigned or is not the correct type
|
|
void | setObject (const std::string &key, ref_ptr< Object > object) |
| assign an Object associated with key
|
|
Object * | getObject (const std::string &key) |
| get Object pointer associated with key, return nullptr if no object associated with key has been assigned
|
|
const Object * | getObject (const std::string &key) const |
| get const Object pointer associated with key, return nullptr if no object associated with key has been assigned
|
|
template<class T > |
T * | getObject (const std::string &key) |
| get object pointer of specified type associated with key, return nullptr if no object associated with key has been assigned
|
|
template<class T > |
const T * | getObject (const std::string &key) const |
| get const object pointer of specified type associated with key, return nullptr if no object associated with key has been assigned
|
|
ref_ptr< Object > | getRefObject (const std::string &key) |
| get ref_ptr<Object> associated with key, return nullptr if no object associated with key has been assigned
|
|
ref_ptr< const Object > | getRefObject (const std::string &key) const |
| get ref_ptr<const Object> pointer associated with key, return nullptr if no object associated with key has been assigned
|
|
template<class T > |
ref_ptr< T > | getRefObject (const std::string &key) |
| get ref_ptr<T> of specified type associated with key, return nullptr if no object associated with key has been assigned
|
|
template<class T > |
const ref_ptr< const T > | getRefObject (const std::string &key) const |
| get ref_ptr<const T> of specified type associated with key, return nullptr if no object associated with key has been assigned
|
|
void | removeObject (const std::string &key) |
| remove meta object or value associated with key
|
|
Auxiliary * | getOrCreateAuxiliary () |
|
Auxiliary * | getAuxiliary () |
|
const Auxiliary * | getAuxiliary () const |
|
Class for adapting 3rd party Windowing implementations to a form usable as a vsg::Window Note, the VulkanSceneGraph provides its own cross platform Windowing support, WindowAdapter is only required when 3rd party windowing is used. The vsgQt project provides an example of a WindowAdapter used to adapt Qt windows with Vulkan support for use with VSG applications.