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

编码的 3D 游戏

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

  • 支付宝移动接口实例(android版)源码下载
    android 支付宝移动版接口实例,最低支持版本 android 2.2,也就是几乎所有版本都支持了
    2015-03-12下载
    积分:1
  • Android TitleProgressBar一例 标题圆圈进度条
    Android TitleProgressBar标题栏处的圆圈进度条一例,是一个进度条,只是显示在Title标题栏处,这种形式也比较常见的。由测试图可看出,标题栏右侧显示一个圆形的进度条,这就是本例所表达的重点。
    2023-01-05 20:55:04下载
    积分:1
  • android 下拉刷新控件
    资源描述android下拉刷新控件,开发常用控件,很实用
    2023-03-28 12:30:04下载
    积分:1
  • 高仿愤怒的小鸟
    高仿愤怒的小鸟 分为两种闯关模式 有趣 有意思  界面酷炫 非常有趣  非常有趣 非常有趣 非常有趣 非常有趣
    2022-03-14 00:25:20下载
    积分:1
  • 安卓UDP完成程序
    安卓UDP完整demo,可实现UDP端口的接收与发送
    2022-10-06 05:25:03下载
    积分:1
  • android 异步 执行 任务 例子 附讲解
    Rules::The AsyncTask instance must be created in UI thread. .execute must be invoked on the UI thread.Never call  objMyTask.onPreExecute(), objMyTask.doInBackground(), objMyTask.onProgressUpdate(),  objMyTask.onPostExecute manually.The AsyncTask can be executed only once (an exception will be thrown if a second execution is attempted.)AsyncTask have Four Main Method... onPreExecute()  doInBackground() onProgressUpdate() onPostExecute()  onPreExecute-This method is called first when you start AsyncTask using objAsync.execute().And mostly this method is use for initializing dialog(ProgressDialog,CustomDialog) and showing. doInBackground-The main purpose of AsyncTask is accomplished by this method.Any non-UI thread process is running in this method.Such as Rss Feed Reader,Image and video Uploading and Downloading.You cant handle your View in this method.Because this method is non-UI thread.While any background process is running if you want to handle UI therea are  onProgressUpdate method. after completion of process this method send result to OnPostExecute. onProgressUpdate-While backgrounding task is running ,you can handle your UI using this method .Such as status of downloading or uploading task.and this method is called from  doInBackground.Using publishProgress() you can call onProgressUpdate method to update UI while process is running. onPostExecute -This method is called after the background computation finishes.The result of background process in passed in this method as parameters.And now you can dismiss progress dialog ,to indicate that background task is completed. You can cancel AsyncTask using objAsyncTask.cancel().then you just check in doInBackground, if (isCancelled()) { break; } else {        //continue... } See this Image For more Clear.
    2013-07-05下载
    积分:1
  • lcIPC_SurfaceView
    surface,H264,解码,显示,网络流,播放(surface, H264)
    2013-08-06 10:18:16下载
    积分:1
  • ListView
    ListView 控件可使用四种不同视图显示项目。通过此控件,可将项目组成带有或不带有列标头的列,并显示伴随的图标和文本。 可使用 ListView 控件将称作 ListItem 对象的列表条目组织成下列四种不同的视图之一:1.大(标准)图标2.小图标3.列表4.报表 View 属性决定在列表中控件使用何种视图显示项目。还可用 LabelWrap 属性控制列表中与项目关联的标签是否可换行显示。另外,还可管理列表中项目的排序方法和选定项目的外观。
    2022-05-22 09:54:19下载
    积分:1
  • android 声波支付例子
    android 声波支付例子
    2014-09-25下载
    积分:1
  • 临近提醒
    临近提醒,比如到达某一位置进行提醒临近提醒,比如到达某一位置进行提醒临近提醒,比如到达某一位置进行提醒临近提醒,比如到达某一位置进行提醒临近提醒,比如到达某一位置进行提醒
    2022-04-13 10:28:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载