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

编码的 3D 游戏

于 2022-07-02 发布 文件大小:10.14 MB
0 244
下载积分: 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 个回复

  • 蓝牙聊天
    我正在使用蓝牙开发聊天应用程序。您可以共享通信和图像。您可以聊天、蓝牙、bchat。应用程序应连接到任何一个android设备。一旦它连接起来,你就可以共享信息和图像
    2022-09-10 22:30:03下载
    积分:1
  • ImgListView_tpxlfd
    ListView头图片下拉放大效果在屏幕上按住下拉可以实现图片的放大,类似的效果可以在手机版的QQ空间看到,不过我没有想出这个例子图片放大可以应用的具体场景。(Listview head picture drop-down amplification effect in the screen hold down to achieve the picture enlarged. Similar effects can be seen in the mobile phone version of the QQ space, but I do not think this example picture amplification can be applied to the specific scene.)
    2016-06-24 17:46:44下载
    积分:1
  • android实现拍照保存预览相册取消退出
    拍照 预览相册 取消 等常用功能
    2014-08-26下载
    积分:1
  • android平台下的数独代码
    不用多说了,数独大家都很熟悉了。android平台下的数独代码供大家参考。喜欢数独或android的朋友千万不要错过哦!注:1.6版本下可正常运行。
    2022-06-01 01:00:40下载
    积分:1
  • android 增加listview gridview recyclerviewlist 动画效果(翻转/加载)
    android 增加listview gridview recyclerviewlist 动画效果(翻转/加载)
    2016-02-24下载
    积分:1
  • Android Paint画一个方框矩形
    Android Paint画一个方框矩形,要使用到触笔事件及线程的相关操作,绘制绿色实心矩形和黄色的方框矩形:   /* 同样是设置颜色 */   mPaint.setColor(Color.rgb(255, 0, 0));   /* 提取颜色 */   Color.red(0xcccccc);   Color.green(0xcccccc);   /* 设置paint的颜色和Alpha值(a,r,g,b) */   mPaint.setARGB(255, 255, 0, 0);   /* 设置paint的Alpha值 */   mPaint.setAlpha(220);   /* 这里可以设置为另外一个paint对象 */   // mPaint.set(new Paint());   /* 设置字体的尺寸 */   mPaint.setTextSize(14);   // 设置paint的风格为“空心”.   // 当然也可以设置为“实心”(Paint.Style.FILL)   mPaint.setStyle(Paint.Style.STROKE);   // 设置“空心”的外框的宽度。   mPaint.setStrokeWidth(5);   /* 得到Paint的一些属性 */   Log.i(TAG, "paint的颜色:" + mPaint.getColor());   Log.i(TAG, "paint的Alpha:" + mPaint.getAlpha());   Log.i(TAG, "paint的外框的宽度:" + mPaint.getStrokeWidth());   Log.i(TAG, "paint的字体尺寸:" + mPaint.getTextSize());   /* 绘制一个矩形 */   // 肯定是一个空心的举行   canvas.drawRect((320 - 80) / 2, 20, (320 - 80) / 2 + 80, 20 + 40, mPaint);   /* 设置风格为实心 */   mPaint.setStyle(Paint.Style.FILL);   mPaint.setColor(Color.GREEN);   /* 绘制绿色实心矩形 */
    2022-07-09 22:15:17下载
    积分:1
  • 滑动效果
    滑动效果
    2015-01-18下载
    积分:1
  • 安卓人脸检测
    安卓人脸检测通过两个主要的API,Android提供了一个直接在位图上进行脸部检测的方法,这两个API分别是    android.media.FaceDetector和android.media.FaceDetector.Face,已经包含在Android官方API中
    2023-07-16 17:20:05下载
    积分:1
  • android简单的糗百
    自定义listview用于显示糗百数据,使用异步任务进行加载网络数据,使用json解析进行解析获取的数据
    2022-04-28 17:16:21下载
    积分:1
  • Android
    安卓系统应用开发入门教程,图文并茂,初学者必备(Android application development tutorial)
    2013-08-05 22:46:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载