![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
openGL 2.0
有门
这个作者很懒,什么都没留下…
展开
-
note-50 CPP GLUT
一个 GLUT + glDrawElement 的基本范例, 要注意的地方已经有说明. 包括双缓冲需要注意的命令 #include <gl/GLUT.h> float angle=0; GLfloat vertices[]={ 1,1,1, -1,1,1, -1,-1,1, 1,-1,1, 1,1,-1, -1,1,-1, -1...原创 2013-04-04 21:38:18 · 94 阅读 · 0 评论 -
note-50 GLUT light_&_material_01
openGL 灯光与材质例子. 顺带完成了一个颇复杂的平面分级算法, 修正版,列出了所有易错的地方: 1. 开启了 GL_XXX_ARRAY 后一定要使用对应的pointer, 否则就把 GL_XXX_ARRAY disable 掉. 2. 法线不一定要设置, openGL会自动为每一Vertex生成一个默认的, 自己设置当然可控性更好. 3. initLight...原创 2013-04-07 00:28:34 · 107 阅读 · 1 评论 -
note 01 - the note about openGL
Warning: the process order are no matter for the scale and rotate , since scale and rotate both are linear transform . But not the translation ! the translation is a affine transform . So, t...原创 2012-11-23 18:20:41 · 138 阅读 · 0 评论 -
note 02-scene graphics node with camera
See the picture.原创 2012-11-23 18:26:05 · 55 阅读 · 0 评论 -
note 03- scene node example
Scene Node Example , a walk through example Main class WalkThrough import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.event.FocusEvent;...原创 2012-11-23 18:37:13 · 82 阅读 · 0 评论 -
note 04-continue scene node example
Go on... package jscene3D; Primitive.java extends Entity , must contain a geometry. package jscene3D; import javax.media.opengl.GL2; public class Primitive extends Entity { ...原创 2012-11-23 18:46:42 · 82 阅读 · 0 评论 -
note 05- scene node go on
Go on again ... all the geometry . nearly completely from David J Eck CubeGeo.java package jscene3D; //package glutil; import javax.media.opengl.GL2; /** * Represents a cube, cent...原创 2012-11-23 18:50:27 · 95 阅读 · 0 评论 -
note 06- use VBO(Value Buffer Object) to draw a Pyramid
import java.awt.BorderLayout; import java.awt.Dimension; import java.nio.FloatBuffer; import java.nio.IntBuffer; import javax.media.opengl.GL2; import javax.media.opengl.GLAutoDrawable; imp...原创 2012-11-24 10:20:43 · 159 阅读 · 0 评论