Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Quick3d Dynamic Texture Input
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository 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
Yuya Nishihara
Quick3d Dynamic Texture Input
Commits
f4d5bf4b
Commit
f4d5bf4b
authored
4 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
specify default surface format and enable multisample rendering
parent
760c928d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-3
3 additions, 3 deletions
CMakeLists.txt
main.cpp
+4
-0
4 additions, 0 deletions
main.cpp
with
7 additions
and
3 deletions
CMakeLists.txt
+
3
−
3
View file @
f4d5bf4b
...
@@ -24,8 +24,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
...
@@ -24,8 +24,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# endif()
# endif()
#endif()
#endif()
find_package
(
QT NAMES Qt6 Qt5 COMPONENTS Core Quick REQUIRED
)
find_package
(
QT NAMES Qt6 Qt5 COMPONENTS Core Quick
Quick3D
REQUIRED
)
find_package
(
Qt
${
QT_VERSION_MAJOR
}
COMPONENTS Core Quick REQUIRED
)
find_package
(
Qt
${
QT_VERSION_MAJOR
}
COMPONENTS Core Quick
Quick3D
REQUIRED
)
set
(
PROJECT_SOURCES
set
(
PROJECT_SOURCES
main.cpp
main.cpp
...
@@ -51,4 +51,4 @@ endif()
...
@@ -51,4 +51,4 @@ endif()
target_compile_definitions
(
quick3d-item-fbo
target_compile_definitions
(
quick3d-item-fbo
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
)
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
)
target_link_libraries
(
quick3d-item-fbo
target_link_libraries
(
quick3d-item-fbo
PRIVATE Qt
${
QT_VERSION_MAJOR
}
::Core Qt
${
QT_VERSION_MAJOR
}
::Quick
)
PRIVATE Qt
${
QT_VERSION_MAJOR
}
::Core Qt
${
QT_VERSION_MAJOR
}
::Quick
Qt
${
QT_VERSION_MAJOR
}
::Quick3D
)
This diff is collapsed.
Click to expand it.
main.cpp
+
4
−
0
View file @
f4d5bf4b
#include
<QGuiApplication>
#include
<QGuiApplication>
#include
<QQmlApplicationEngine>
#include
<QQmlApplicationEngine>
#include
<QQuick3D>
#include
<QSurfaceFormat>
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
...
@@ -9,6 +11,8 @@ int main(int argc, char *argv[])
...
@@ -9,6 +11,8 @@ int main(int argc, char *argv[])
QGuiApplication
app
(
argc
,
argv
);
QGuiApplication
app
(
argc
,
argv
);
QSurfaceFormat
::
setDefaultFormat
(
QQuick3D
::
idealSurfaceFormat
(
4
));
QQmlApplicationEngine
engine
;
QQmlApplicationEngine
engine
;
const
QUrl
url
(
QStringLiteral
(
"qrc:/main.qml"
));
const
QUrl
url
(
QStringLiteral
(
"qrc:/main.qml"
));
QObject
::
connect
(
&
engine
,
&
QQmlApplicationEngine
::
objectCreated
,
QObject
::
connect
(
&
engine
,
&
QQmlApplicationEngine
::
objectCreated
,
...
...
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