登录
首页 » OpenGL图像 » OpenGL实现二维图像的三维显示

OpenGL实现二维图像的三维显示

于 2022-01-24 发布 文件大小:86.63 kB
0 199
下载积分: 2 下载次数: 1

代码说明:

图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等

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

发表评论

0 个回复

  • E. fighters is I spent a few months to do a simple game engine aircraft, which c...
    E战机是我花了几个月做的一个简单飞机游戏引擎,目前它支持,自定义资源,自定义单位,编辑关卡等功能! 因为我不是很懂OpenGL所以目前本游戏~还是使用GUI绘图~ 对CPU的~要求比较高~ 而且~OpenGL的纹理不是支持任何尺寸的图片~ 文件说明 Reslist.gam 游戏资源文件 游戏所需要的图片资源都在这里定义~ 目前它还是以文本形式保存的 WAV.txt 游戏声音资源文件~ 游戏里面用到的声音都在这里~ 也是文本保存 UnitX.txt 单位定义文件 所有游戏单位的定义都在这里~ 包括自己的飞机~ 子弹 敌人~等等~ 敌人如何行动也是在这里定义的 Level.lev 游戏关卡文件 保存了游戏关卡数据文件 使用以上4个文件 你就能做出你自己的飞机游戏了~~ 你也可以试着把这个未完成的关卡完成~ 目前地图编辑器正在开发中~~ ========================= 控制说明 发射子弹 空格 Ctrl 炸弹 方向键 控制行动 ========================= -- 其他功能继续完善中 -- -E. fighters is I spent a few months to do a simple game engine aircraft, which currently support from the definition of resources, Since the definition of units, editing functions such as hurdles! I do not really understand them because currently the OpenGL games or use GUI ~ ~ drawing on the CPU requests than ~ ~ ~ and higher OpenGL texture is not in support of any size photo-documented Reslist.g am documents game game resources needed resources are pict
    2022-01-30 20:49:10下载
    积分:1
  • 基于MFC的简单vega prime框架下的VC++程序,希望对大家有用
    基于MFC的简单vega prime框架下的VC++程序,希望对大家有用-Vega prime based on a simple MFC under the framework of VC++ program, hope for all of us
    2022-12-18 01:05:03下载
    积分:1
  • OPENGL编程初步,实现射击,爆炸效果,不能运行的划清跟我联系...
    OPENGL编程初步,实现射击,爆炸效果,不能运行的划清跟我联系-achieve fire, explosion effects, can not run the draw contact me
    2022-09-17 17:20:03下载
    积分:1
  • 利用OPENGL在MFC的单文档视结构中的窗体上绘制了两国三维物体,并且添加了一些相关的背景绘制...
    利用OPENGL在MFC的单文档视结构中的窗体上绘制了两国三维物体,并且添加了一些相关的背景绘制-use OpenGL in MFC single document as the structure on the Form 3D rendering of the two objects, and the addition of some relevant background rendering
    2022-03-07 07:52:02下载
    积分:1
  • OpenGL初级学习的经典例程,实现了模板缓存效果。有助于理解模板缓存功能。...
    OpenGL初级学习的经典例程,实现了模板缓存效果。有助于理解模板缓存功能。-OpenGL junior studying classical routines to achieve a template cache effect. Templates help to understand cache function.
    2023-05-22 05:05:03下载
    积分:1
  • 应用程序向导创建了这个mfc_basic应用你。这个应用程序不好。
    AppWizard has created this mfc_basic application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application.
    2022-03-02 11:07:04下载
    积分:1
  • Qt形绘制
    通过MVC实现Qt图形绘制,可以实现多个图形的单选或者多选,类似于office以及WPS等常见办公软件的演示操作时候的图形天剑功能
    2023-02-19 05:20:06下载
    积分:1
  • This tutorial shows how to use the GL_REFLECTION_MAP_EXT and GL_TEXTURE_CUBE_MAP...
    This tutorial shows how to use the GL_REFLECTION_MAP_EXT and GL_TEXTURE_CUBE_MAP extensions to render a reflective Cube map The dglOpenGL.pas file was created by the team at www.delphigl.com I have included the html readme for an explanation of using this.-This tutorial shows how to use the GL_REFLECTION_MAP_EXT and GL_TEXTURE_CUBE_MAP exten Dimensions to render a map reflective Cube The dglOpe nGL.pas file was created by the team at www.delp higl.com I have included the html readme for an e xplanation of using this.
    2022-07-09 10:17:04下载
    积分:1
  • vb called opengl, prepared by the Rotary model, the source code can study based...
    vb调用opengl,编写的旋转模型,通过这个源代码,可以学习基础的vb调用opengl过程-vb called opengl, prepared by the Rotary model, the source code can study based vb process called opengl
    2022-04-11 16:55:01下载
    积分:1
  • the opengl programming procedures
    c#下的opengl编程程序-the opengl programming procedures
    2023-07-11 09:35:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载