Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
950e2ffb
Commit
950e2ffb
authored
Feb 01, 2011
by
Leena Miettinen
Browse files
Doc: GLSL shader wizards
Reviewed-by: Erik Verbruggen
parent
427ea67a
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/images/qtcreator-new-opengl-file.png
0 → 100644
View file @
950e2ffb
29.4 KB
doc/qtcreator.qdoc
View file @
950e2ffb
...
...
@@ -2720,6 +2720,10 @@
\o C++ class, source, or header files
\o GLSL files that define fragment and vertex shaders in the Open GL/ES
2.0 Shading Language (GLSL/ES) or in the Desktop OpenGL Shading
Language (GLSL)
\o Text files
\endlist
...
...
@@ -2742,6 +2746,24 @@
You can create your own project and class wizards. For more information,
see \l{Adding New Custom Wizards}.
\section2 Creating OpenGL Fragment and Vertex Shaders
Qt provides support for integration with OpenGL implementations on all
platforms, which allows you to display hardware accelerated 3D graphics
alongside a more conventional user interface. For more information, see
\l{http://doc.qt.nokia.com/4.7/qtopengl.html}{QtOpenGL Module}.
You can use the QGLShader class to compile OpenGL shaders written in the
OpenGL Shading Language (GLSL) and in the OpenGL/ES Shading Language
(GLSL/ES). QGLShader and QGLShaderProgram shelter you from the details of
compiling and linking vertex and fragment shaders.
You can use Qt Creator code editor to write fragment and vertex shaders
in GLSL or GLSL/ES. The code editor provides syntax highlighting and code
completion for the files.
\image qtcreator-new-opengl-file.png "New OpenGL file wizard"
\section2 Displaying Additional File Types in Projects Pane
Qt Creator determines whether to display files from the project folder
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment