glsl_layout

所属分类:OpenGL
开发工具:Visual C++
文件大小:17KB
下载次数:16
上传日期:2011-11-08 10:36:50
上 传 者and_swordday
说明:  glsl 基础处理语法 uniform block scene layout等等
(glsl basic grammar uniform block scene layout)

文件列表:
chapter01\.hg_archival.txt (147, 2011-03-02)
chapter01\chapter01.pro (732, 2011-03-02)
chapter01\glslprogram.cpp (7258, 2011-03-02)
chapter01\glslprogram.h (1611, 2011-03-02)
chapter01\glutils.cpp (1471, 2011-03-02)
chapter01\glutils.h (226, 2011-03-02)
chapter01\main.cpp (1223, 2011-03-02)
chapter01\mainview.cpp (1857, 2011-03-02)
chapter01\mainview.h (531, 2011-03-02)
chapter01\scene.h (511, 2011-03-02)
chapter01\scenebasic.cpp (6862, 2011-03-02)
chapter01\scenebasic.h (471, 2011-03-02)
chapter01\scenebasic_layout.cpp (7277, 2011-03-02)
chapter01\scenebasic_layout.h (551, 2011-03-02)
chapter01\scenebasic_uniform.cpp (7751, 2011-03-02)
chapter01\scenebasic_uniform.h (667, 2011-03-02)
chapter01\scenebasic_uniformblock.cpp (9516, 2011-03-02)
chapter01\scenebasic_uniformblock.h (726, 2011-03-02)
chapter01\shader\basic.frag (108, 2011-03-02)
chapter01\shader\basic.vert (176, 2011-03-02)
chapter01\shader\basic_layout.frag (130, 2011-03-02)
chapter01\shader\basic_layout.vert (220, 2011-03-02)
chapter01\shader\basic_uniform.frag (130, 2011-03-02)
chapter01\shader\basic_uniform.vert (374, 2011-03-02)
chapter01\shader\basic_uniformblock.frag (452, 2011-03-02)
chapter01\shader\basic_uniformblock.vert (230, 2011-03-02)
chapter01\shader (0, 2011-09-20)
chapter01 (0, 2011-09-20)

########################################### This contains the examples from Chapter 1. ########################################### #### REQUIREMENTS ####### This code is written using the Qt SDK version 4.7. It includes a qmake project file, so building the examples should be very straightforward as long as you have the Qt SDK installed. It should also load into Qt Creator quite readily. The examples have been tested in Windows, but not on other OSs. It should be fairly straightforward to port over to Linux or MacOS X, so any help with this would be appreciated. ###### RUNNING THE EXAMPLES ######### Each example is broken up into a class that extends Scene. Each one should have a class name that begins with "Scene". There is not a one-to-one correspondence between recipes and scenes so you may need to look around a bit to find the example. To select one of the scenes, edit the file mainview.cpp and change the line that starts with: scene = new Scene....(...); with the appropriate scene class. For example, if I want to run the SceneBasic_Layout example, I'd use the following: scene = new SceneBasic_Layout(); Also, you will need to update the include statement at the top of the file: #include "scenebasic_layout.h"

近期下载者

相关文件


收藏者