Made render pass and frame buffer setup functions virtual
This commit is contained in:
parent
fb9bbb1ce7
commit
9f787938c3
1 changed files with 5 additions and 3 deletions
|
|
@ -207,7 +207,7 @@ public:
|
||||||
// Containing view dependant matrices
|
// Containing view dependant matrices
|
||||||
virtual void viewChanged();
|
virtual void viewChanged();
|
||||||
// Called if a key is pressed
|
// Called if a key is pressed
|
||||||
// Can be overriden derived class to do custom key handling
|
// Can be overriden in derived class to do custom key handling
|
||||||
virtual void keyPressed(uint32_t keyCode);
|
virtual void keyPressed(uint32_t keyCode);
|
||||||
|
|
||||||
// Get memory type for a given memory allocation (flags and bits)
|
// Get memory type for a given memory allocation (flags and bits)
|
||||||
|
|
@ -218,9 +218,11 @@ public:
|
||||||
// Setup default depth and stencil views
|
// Setup default depth and stencil views
|
||||||
void setupDepthStencil();
|
void setupDepthStencil();
|
||||||
// Create framebuffers for all requested swap chain images
|
// Create framebuffers for all requested swap chain images
|
||||||
void setupFrameBuffer();
|
// Can be overriden in derived class to setup a custom framebuffer (e.g. for MSAA)
|
||||||
|
virtual void setupFrameBuffer();
|
||||||
// Setup a default render pass
|
// Setup a default render pass
|
||||||
void setupRenderPass();
|
// Can be overriden in derived class to setup a custom render pass (e.g. for MSAA)
|
||||||
|
virtual void setupRenderPass();
|
||||||
|
|
||||||
// Connect and prepare the swap chain
|
// Connect and prepare the swap chain
|
||||||
void initSwapchain();
|
void initSwapchain();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue