Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
c0305598
Commit
c0305598
authored
3 years ago
by
Sebastian Gaida
Browse files
Options
Downloads
Patches
Plain Diff
[
#89
] added swapchain handle to window
parent
f79ebc8f
No related branches found
No related tags found
1 merge request
!90
Resolve "Mehrere Fenster, Abhängigkeiten von Core zu Fenster+Swapchain etc"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/vkcv/Swapchain.hpp
+2
-0
2 additions, 0 deletions
include/vkcv/Swapchain.hpp
include/vkcv/Window.hpp
+9
-0
9 additions, 0 deletions
include/vkcv/Window.hpp
src/vkcv/Window.cpp
+4
-0
4 additions, 0 deletions
src/vkcv/Window.cpp
with
15 additions
and
0 deletions
include/vkcv/Swapchain.hpp
+
2
−
0
View file @
c0305598
...
@@ -13,6 +13,8 @@ namespace vkcv
...
@@ -13,6 +13,8 @@ namespace vkcv
class
Swapchain
final
{
class
Swapchain
final
{
private:
private:
friend
class
Core
;
friend
class
Core
;
friend
class
Window
;
friend
class
SwapchainManager
;
struct
Surface
struct
Surface
{
{
...
...
This diff is collapsed.
Click to expand it.
include/vkcv/Window.hpp
+
9
−
0
View file @
c0305598
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include
<string>
#include
<string>
#include
"Event.hpp"
#include
"Event.hpp"
#include
"Handles.hpp"
struct
GLFWwindow
;
struct
GLFWwindow
;
...
@@ -12,10 +13,12 @@ namespace vkcv {
...
@@ -12,10 +13,12 @@ namespace vkcv {
class
Window
{
class
Window
{
friend
class
WindowManager
;
friend
class
WindowManager
;
friend
class
SwapchainManager
;
private:
private:
std
::
string
m_title
;
std
::
string
m_title
;
bool
m_resizable
;
bool
m_resizable
;
GLFWwindow
*
m_window
;
GLFWwindow
*
m_window
;
SwapchainHandle
m_swapchainHandle
;
public:
public:
/**
/**
...
@@ -130,6 +133,12 @@ namespace vkcv {
...
@@ -130,6 +133,12 @@ namespace vkcv {
* @param height
* @param height
*/
*/
void
getFramebufferSize
(
int
&
width
,
int
&
height
)
const
;
void
getFramebufferSize
(
int
&
width
,
int
&
height
)
const
;
/**
* gets the SwapchainHandle corresponding to the swapchain of the window
* @return
*/
SwapchainHandle
getSwapchainHandle
()
const
;
};
};
}
}
This diff is collapsed.
Click to expand it.
src/vkcv/Window.cpp
+
4
−
0
View file @
c0305598
...
@@ -305,4 +305,8 @@ namespace vkcv {
...
@@ -305,4 +305,8 @@ namespace vkcv {
Window
&
window
=
*
static_cast
<
Window
*>
(
glfwGetWindowUserPointer
(
*
activeWindowIterator
));
Window
&
window
=
*
static_cast
<
Window
*>
(
glfwGetWindowUserPointer
(
*
activeWindowIterator
));
return
window
;
return
window
;
}
}
SwapchainHandle
Window
::
getSwapchainHandle
()
const
{
return
m_swapchainHandle
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment