-
水木清华的精华区OpenGL系列例程及教程,非常好,适合OpenGL初学者...
水木清华的精华区OpenGL系列例程及教程,非常好,适合OpenGL初学者-SMTH, the focus of OpenGL series of routines and classes, is very good and is suitable for beginners OpenGL
- 2023-03-10 17:45:04下载
- 积分:1
-
Opengl绘制镜子效果
应用背景混合是什么呢?混合就是把两种颜色混在一起。具体一点,就是把某一像素位置原来的颜色和将要画上去的颜色,通过某种方式混在一起,从而实现特殊的效果。
假设我们需要绘制这样一个场景:透过红色的玻璃去看绿色的物体,那么可以先绘制绿色的物体,再绘制红色玻璃。在绘制红色玻璃的时候,利用“混合”功能,把将要绘制上去的红色和原来的绿色进行混合,于是得到一种新的颜色,看上去就好像玻璃是半透明的。
要使用OpenGL的混合功能,只需要调用:glEnable(GL_BLEND);即可。
要关闭OpenGL的混合功能,只需要调用:glDisable(GL_BLEND);即可。
注意:只有在RGBA模式下,才可以使用混合功能,颜色索引模式下是无法使用混合功能的。关键技术 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-13 12:23:43下载
- 积分:1
-
have included this Multiple Document Interface example here because any game dev...
have included this Multiple Document Interface example here because any game development requires a good editor for constructing the world or models. The editor should provide multiple views of the scene and therefore the most intuitive method is to use multiple windows that allow perspective and orthographic views. In my search of the internet I was unable to find any example code that showed how to program an OpenGL Multiple Document Interface application using just straight Win32 programming with no MFC so I decided to program it myself. This MDI example only shows the same scene in each child window but should be easily understandable and modifiable by anyone familiar with programming a standard MDI application using the Win32 API. I will follow up this example with a more complete editor example.
- 2022-01-31 20:36:34下载
- 积分:1
-
OpenGL MUST Project 1[Polyline Editor] use Array of C++
// student name:
// student ID:
// date:
/*#include "D:HomeworkOpenGLFinalCGLabGLUT_Toolkitglut.h"*/
#include
#include
#include
GLint ploypoint = 0;
GLint ployline=-1;
GLint height;
GLint choose=0;
GLint move_ployline,move_ploypoint;
struct Point
{
int x;
int y;
};
struct GLintPointArray
{
Point point[60];
};
GLintPointArray ploy[60];
void drawPointLine()
{
for (int i=0;i
- 2022-05-15 00:12:34下载
- 积分:1
-
基于Qt的OPENGL程序,可以帮助理解OPENGL在Qt中的使用方法
基于Qt的OPENGL程序,可以帮助理解OPENGL在Qt中的使用方法 -Qt based on the OPENGL procedures, can help to understand OPENGL in Qt in use
- 2022-03-10 11:23:18下载
- 积分:1
-
八叉树的实现
功能:
1、创建八叉树。
此八叉树为满树,即所有节点/叶子全部创建。
用户可以自定义此八叉树的深度和所处的三维场景中的位置。...
八叉树的实现
功能:
1、创建八叉树。
此八叉树为满树,即所有节点/叶子全部创建。
用户可以自定义此八叉树的深度和所处的三维场景中的位置。
注a:由于创建树时为满树创建,故层数太大时创建时间可能会比较久,请耐心等待。
注b:创建顺序为(1)上层左前节点-(2)上层右前节点-(3)上层右前节点-(4)上层右后节点
-(5)下层左前节点-(6)下层右前节点-(7)下层右前节点-(8)下层右后节点-(1)-(2)……
2、先序遍历八叉树。
八叉树创建成功后用户可调用此子模块查看此八叉树,会显示每个结点的编号,值和在场景中的坐标。
3、查看八叉树的深度。
4、在场景中查找点。
用户首先输入要查找的坐标。
如果该点位于场景外则提示用户并返回,否则在场景中递归查找该点。
找到后输出该点所处的子结点的坐标和递归次数。-err
- 2022-02-04 18:51:02下载
- 积分:1
-
基于opengl的桢缓存的alpha融合实例。
基于opengl的桢缓存的alpha融合实例。-on opengl undercover cache alpha fusion examples.
- 2022-07-27 07:49:17下载
- 积分:1
-
该程序是在OpenGL在完成绘制2维图画。
该程序是在OpenGL在完成绘制2维图画。-2D
- 2022-02-10 06:01:35下载
- 积分:1
-
OpenGL3.0+ for Games
Opengl3.0 游戏编程,一些相关的交互,纹理接口,应用glew库实现对底层API的调用,可扩展,部分代码来自互联网,有一定的参考价值,本人是做3d开发的,觉得这个资源很不错,可以交流学习下。
- 2023-05-10 18:15:03下载
- 积分:1
-
用OPEN
用OPEN-GL实现贝赛尔(Bezier)曲线-use OPEN-GL achieve Bessel (Bezier) curve
- 2022-03-07 21:47:13下载
- 积分:1