csgl.1.4.1.src
所属分类:OpenGL
开发工具:C/C++
文件大小:504KB
下载次数:97
上传日期:2006-10-23 12:21:01
上 传 者:
wzyexf
说明: csgl的源代码.开发工具是c#
(csgl source. Development tools c#)
文件列表:
csgl_1.x.cmbx (1054, 2002-11-03)
doc (0, 2002-10-19)
doc\authors.html (3851, 2002-11-03)
doc\extension-supported.txt (2502, 2002-11-03)
doc\faq.html (15390, 2002-11-03)
doc\gfx (0, 2002-09-29)
doc\gfx\back.png (1535, 2002-02-03)
doc\gfx\back2.png (1535, 2002-02-03)
doc\gfx\logo.png (27969, 2002-02-03)
doc\gfx\navigation.png (17239, 2002-02-03)
doc\gfx\spacer.png (461, 2002-02-03)
doc\history.html (19622, 2002-11-03)
doc\images (0, 2002-11-03)
doc\images\exoengine.jpg (48448, 2001-12-12)
doc\images\glviewer.jpg (57055, 2002-05-19)
doc\images\lilburn.jpg (42863, 2002-07-13)
doc\images\NeHeLessons.NeHeLesson37.jpg (22064, 2002-11-03)
doc\images\RedbookExamples.RedbookTeapots.jpg (18159, 2002-11-03)
doc\images\SchaapExamples.SchaapFireworks.jpg (21190, 2002-11-03)
doc\index.html (6871, 2002-11-03)
doc\license.html (4298, 2002-11-03)
doc\links.html (6201, 2002-11-03)
doc\projects.html (5061, 2002-11-03)
doc\screenshots.html (3546, 2002-11-03)
doc\style.css (795, 2002-05-21)
examples (0, 2002-09-29)
examples\CPP (0, 2002-11-02)
examples\CPP\03.cpp (1782, 2002-10-26)
examples\CPP\GNUmakefile (256, 2002-09-27)
examples\CS (0, 2002-11-02)
examples\CS\display.cs (492, 2002-10-26)
examples\CS\drawimage.cs (2613, 2002-10-26)
examples\CS\event.cs (2485, 2002-11-02)
examples\CS\FingerRight.gif (1006, 1998-11-19)
examples\CS\gdifont.cs (3252, 2002-10-26)
examples\CS\GNUmakefile (445, 2002-10-26)
examples\CS\palette.cs (2595, 2002-10-26)
examples\CS\quadric.cs (1962, 2002-07-13)
examples\CS\run.bat (271, 2002-10-27)
examples\examples.prjx (3898, 2002-11-03)
... ...
Authors : Lloyd Dupont (lloyd@galador.net)
Web: http://csgl.souceforge.net
it implements
-------------
- all 1.4 OpenGL, GLU call
- some GLUT call, some OpenGL extension
- usefull init/rendering tool for OpenGL
- you could also generate your extension file from the header
from /extras/generator/generator.exe
core files:
-----------
- csgl.dll the OpenGL API and some other tools. it's a .NET assembly
- csgl.native.dll this is a private native DLL to be used by csgl.dll to do non NET stuff
Runtime requirement:
--------------------
- .NET Runtime
- OpenGL : OpenGL library (must be shipped with windows or: http://www.opengl.org)
Compile time requirement:
-------------------------
csgl.dll:
- .NET SDK (csc) (clic on /src/buidcs.bat)
csgl.native.dll:
- OpenGL header
- UNIX find (on CsGL site or in mingw http://www.mingw.org)
- GNUmakefile (mingw, cygwin ?)
- gcc (in mingw => http://www.mingw.org)
- to build simply type "make" (make lib or libinstall, as you want)
Data translation rules:
-----------------------
OpenGL API, a C API often take pointer type as parameter
in order to have so-called safe (without pointer) code
the following translation rules apply:
type* -> type[]
2 problems remains though.
- the void* cannot be so translated
- sometimes OpenGL just retain the pointer address
(glColorPointer(..), glSelectBuffer(..), ..) and managed array
could move..
to address this problem, first such function take a pointer
argument (System.IntPtr) and second there is a class
CsGL.Pointers.PVoid which could alloc and return an unmoving pointer.
Though you generally use one of its childs CsGL.Pointers.PType,
such as PFloat, PUInt32, etc... like this:
PUInt32 p = new PUInt32(N);
for(i=0; p.Length; i++)
p[i] = whatever();
glSelectBuffer(p.Lenth /*N*/, p);
近期下载者:
相关文件:
收藏者: