登录
首页 » Android » 编码的 3D 游戏

编码的 3D 游戏

于 2022-07-02 发布 文件大小:10.14 MB
0 212
下载积分: 2 下载次数: 1

代码说明:

3D 培训 我写的 3D 游戏培训编程 glUseProgram(m_programSkyBox.Program); glGenBuffers(1, &skyBoxVertexBuffer); glBindBuffer(GL_ARRAY_BUFFER, skyBoxVertexBuffer); float vertices[24] = { -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, }; glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); glGenBuffers(1, &skyBoxIndexBuffer); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, skyBoxIndexBuffer); GLubyte indices[14] = {0, 1, 2, 3, 7, 1, 5, 4, 7, 6, 2, 4, 0, 1}; 绘图 skybox: glClearColor(0.5f, 0.5f, 0.5f, 1); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glUseProgram(m_programSkyBox.Program); glDisable(GL_DEPTH_TEST); // skybox should be drawn behind anything else glBindTexture(GL_TEXTURE_CUBE_MAP, m_textures.Cubemap); glBin

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ELamp
    Android灯应用源码,包括霓虹灯效果。(Android lamp application source code, including the neon light effect.)
    2012-11-16 11:50:00下载
    积分:1
  • android 第三方登录实例源码下载(QQ登录/新浪微博登录)
    android 第三方登录实例源码下载(QQ登录/新浪微博登录)
    2014-05-23下载
    积分:1
  • App自动更新
    App自动更新
    2013-10-23下载
    积分:1
  • wifilevel
    获取WiFi信号强度,并保存在android固定文件夹中(Get the WiFi signal strength and save it in the Android fixed folder)
    2017-08-21 08:35:13下载
    积分:1
  • Android
    2022-02-25 17:21:49下载
    积分:1
  • android 一键锁屏实例源码,android4.2测试通过
    android 一键锁屏实例源码,android4.2测试通过
    2014-09-02下载
    积分:1
  • MyFeiGe(8.1)
    Android Java,经过修改的飞鸽传输代码,希望能帮到大家(Modified Feige transmission code)
    2012-08-08 10:33:48下载
    积分:1
  • android-2409SDK
    库使用方法: 1、解压libs.zip; 2、将libs文件夹直接拷贝到工程根目录下。 (Library use: 1, extract libs.zip 2, the libs folder copy directly to the project root directory.)
    2013-06-13 11:42:48下载
    积分:1
  • 编程工具
    Android环境搭建工具,ADT希望能给大家带来方便。
    2023-01-17 22:45:26下载
    积分:1
  • gathsrkernel
    说明:  LDPC校验矩阵生成,高斯消去法编码,BP译码程序,可以作为自己编写LDPC编译码程序的参考,因为matlab代码效率不高(The LDPC check matrix generation, the Gaussian elimination method and the BP decoding program can be used as the reference of the LDPC coding program, because the matlab code efficiency is not high.)
    2019-03-26 14:56:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载