rdb 64cd2984ee Fix compiler warning when NDEBUG is defined před 16 roky
..
README.txt 4f8dcaf407 integrate TinySDGL code directly před 17 roky
Sources.pp 43f43e6861 Split glxdisplay into x11display and glxdisplay před 16 roky
clip.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
config_tinydisplay.cxx 905cd3ad69 tinyXGraphicsStuff depend on x11display před 16 roky
config_tinydisplay.h 905cd3ad69 tinyXGraphicsStuff depend on x11display před 16 roky
error.cxx 923c9929a1 a few more warning squelches před 17 roky
image_util.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
init.cxx 81fbb04fbf depth offset před 17 roky
memory.cxx 4187bbd8bf proper mem accounting před 17 roky
msghandling.cxx 64cd2984ee Fix compiler warning when NDEBUG is defined před 16 roky
msghandling.h 4f8dcaf407 integrate TinySDGL code directly před 17 roky
specbuf.cxx 80253733c6 build on windows před 17 roky
store_pixel.cxx fb9c56432a we are now using the modified BSD license před 17 roky
store_pixel.h e4709607c3 color mask před 17 roky
store_pixel.py e4709607c3 color mask před 17 roky
store_pixel_code.h e4709607c3 color mask před 17 roky
store_pixel_table.h e4709607c3 color mask před 17 roky
td_light.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
td_texture.cxx 1b37ee8b9c composite build před 17 roky
tinyGeomMunger.I fb9c56432a we are now using the modified BSD license před 17 roky
tinyGeomMunger.cxx 1aa39d8088 rename TinyGL -> TinyPanda před 17 roky
tinyGeomMunger.h 1aa39d8088 rename TinyGL -> TinyPanda před 17 roky
tinyGraphicsBuffer.I ab486404e5 wip: tinybuffer před 17 roky
tinyGraphicsBuffer.cxx 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyGraphicsBuffer.h 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyGraphicsStateGuardian.I d653bfc559 lighting optimization před 17 roky
tinyGraphicsStateGuardian.cxx d05d89a5e4 texture-minfilter etc. před 16 roky
tinyGraphicsStateGuardian.h 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyOffscreenGraphicsPipe.I 24caf70155 tinyOffscreenGraphicsPipe před 17 roky
tinyOffscreenGraphicsPipe.cxx 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyOffscreenGraphicsPipe.h 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyOsxGraphicsPipe.I fb9c56432a we are now using the modified BSD license před 17 roky
tinyOsxGraphicsPipe.cxx 37e76f402d subprocess window před 16 roky
tinyOsxGraphicsPipe.h 8a44eb5b92 safe iphone build před 16 roky
tinyOsxGraphicsWindow.I 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
tinyOsxGraphicsWindow.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
tinyOsxGraphicsWindow.mm 8a44eb5b92 safe iphone build před 16 roky
tinySDLGraphicsPipe.I fb9c56432a we are now using the modified BSD license před 17 roky
tinySDLGraphicsPipe.cxx 8b407bb654 build tinysdl with new engine rules před 17 roky
tinySDLGraphicsPipe.h 8b407bb654 build tinysdl with new engine rules před 17 roky
tinySDLGraphicsWindow.I fb9c56432a we are now using the modified BSD license před 17 roky
tinySDLGraphicsWindow.cxx 8b407bb654 build tinysdl with new engine rules před 17 roky
tinySDLGraphicsWindow.h 8b407bb654 build tinysdl with new engine rules před 17 roky
tinyTextureContext.I a8ec068c05 graphics-memory-limit před 17 roky
tinyTextureContext.cxx a8ec068c05 graphics-memory-limit před 17 roky
tinyTextureContext.h a8ec068c05 graphics-memory-limit před 17 roky
tinyWinGraphicsPipe.I fb9c56432a we are now using the modified BSD license před 17 roky
tinyWinGraphicsPipe.cxx 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyWinGraphicsPipe.h 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyWinGraphicsWindow.I fb9c56432a we are now using the modified BSD license před 17 roky
tinyWinGraphicsWindow.cxx 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyWinGraphicsWindow.h 7af1350e4e pass GraphicsEngine through to constructors před 17 roky
tinyXGraphicsPipe.I 905cd3ad69 tinyXGraphicsStuff depend on x11display před 16 roky
tinyXGraphicsPipe.cxx 905cd3ad69 tinyXGraphicsStuff depend on x11display před 16 roky
tinyXGraphicsPipe.h 905cd3ad69 tinyXGraphicsStuff depend on x11display před 16 roky
tinyXGraphicsWindow.I fb9c56432a we are now using the modified BSD license před 17 roky
tinyXGraphicsWindow.cxx 905cd3ad69 tinyXGraphicsStuff depend on x11display před 16 roky
tinyXGraphicsWindow.h 27375c3fef Oops, some fixes před 16 roky
tinydisplay_composite1.cxx 1b37ee8b9c composite build před 17 roky
tinydisplay_composite2.cxx 24caf70155 tinyOffscreenGraphicsPipe před 17 roky
vertex.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zbuffer.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zbuffer.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zdither.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zfeatures.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zgl.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zline.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zline.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zmath.cxx 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
zmath.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
ztriangle.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky
ztriangle.py c9ce1ada45 better solution for win32 linking? před 16 roky
ztriangle_1.cxx 4b48520ada fix build issues on windows před 16 roky
ztriangle_2.cxx 4b48520ada fix build issues on windows před 16 roky
ztriangle_3.cxx 4b48520ada fix build issues on windows před 16 roky
ztriangle_4.cxx 4b48520ada fix build issues on windows před 16 roky
ztriangle_code_1.h c9ce1ada45 better solution for win32 linking? před 16 roky
ztriangle_code_2.h c9ce1ada45 better solution for win32 linking? před 16 roky
ztriangle_code_3.h c9ce1ada45 better solution for win32 linking? před 16 roky
ztriangle_code_4.h c9ce1ada45 better solution for win32 linking? před 16 roky
ztriangle_table.cxx c9ce1ada45 better solution for win32 linking? před 16 roky
ztriangle_table.h a32fe74070 3-stage multitexture před 17 roky
ztriangle_two.h 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) před 16 roky

README.txt

The code in this directory was lifted from TinySDGL, which was itself
modified from TinyGL, a project originally written by Fabrice Bellard.
The README and LICENSE files that accompany that project are included
here.

We have modified the original TinyGL code to interface more directly
with the Panda3D constructs, eliminating the thin OpenGL interface
layer. We have also added features we deemed necessary, such as
texture modulate mode and alpha blending.


-------------------------------------------------------------------
Original TinySDGL/TinyGL LICENSE

Copyright notice:

(C) 1997-1998 Fabrice Bellard

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product and its documentation
*is* required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

If you redistribute modified sources, I would appreciate that you
include in the files history information documenting your changes.


-------------------------------------------------------------------
Original TinySDGL/TinyGL README

TinyGL 0.4 (c) 1997-2002 Fabrice Bellard.
TinySDGL 0.5, 2005 a port to libSDL by Gerald Franz ([email protected]).

General Description:
--------------------

TinyGL is intended to be a very small implementation of a subset of
OpenGL* for embedded systems or games. It is a software only
implementation. Only the main OpenGL calls are implemented. All the
calls I considered not important are simply *not implemented*.

The main strength of TinyGL is that it is fast and simple because it
has not to be exactly compatible with OpenGL. In particular, the
texture mapping and the geometrical transformations are very fast.

The main features of TinyGL are:

- Header compatible with OpenGL (the headers are adapted from the very good
Mesa by Brian Paul et al.)

- Zlib-like licence for easy integration in commercial designs (read
the LICENCE file).

- Examples that show the integration into the platform-independent
libSDL (http://www.libsdl,org)

- Easy porting to further platforms, since all platform-specific code has
been moved from the core library into the examples.

- OpenGL like lighting.

- Complete OpenGL selection mode handling for object picking.

- 16 bit Z buffer. 16/24/32 bit RGB rendering. High speed dithering to
paletted 8 bits if needed. High speed conversion to 24 bit packed
pixel or 32 bit RGBA if needed.

- Fast Gouraud shadding optimized for 16 bit RGB.

- Fast texture mapping capabilities, with perspective correction and
texture objects.

- 32 bit float only arithmetic.

- Very small: compiled (and stripped) code size of about 40 kB on x86.
The file include/zfeatures.h can be used to remove some unused
features from TinyGL.

- C sources for GCC on 32/64 bit architectures. It has been tested
succesfully on x86-Linux and MS Windows.

Examples:
---------

I took three simple examples from the Mesa package to test the main
functions of TinyGL. You can link them to either TinyGL, Mesa or any
other OpenGL implementation.

- texobj illustrates the use of texture objects. Its shows the speed
of TinyGL in this case (example not included in TinySDGL).

- You can download and compile the VReng project to see that TinyGL
has been successfully used in a big project
(http://www-inf.enst.fr/vreng).

Architecture:
-------------

TinyGL is made up four main modules:

- Mathematical routines (zmath).

- OpenGL-like emulation (zgl).

- Z buffer and rasterisation (zbuffer).

To use TinySDGL in a further system, you should look at the examples
and replace the SDL specific code by corresponding commands.

Notes - limitations:
--------------------

- 24 BIT packed pixel format seems not to work correctly under libSDL.

- See the file 'LIMITATIONS' to see the current functions supported by the API.

- Multithreading could be easily implemented since no global state
is maintained. The library gets the current context with a function
which can be modified.

- Lightening is not very fast. I suppose that in most games the
lightening is computed by the 3D engine.

- Some changes are needed for 64 bit pointers for the handling of
arrays of float with the GLParam union.

- No user clipping planes are supported.

- No color index mode (no longer useful !)

- The mipmapping is not implemented.

- The perspecture correction in the mapping code does not use W but
1/Z. In any 'normal scene' it should work.

Why ?
-----

TinyGL was developed as a student project for a Virtual Reality
network system called VReng (see the VReng home page at
http://www-inf.enst.fr/vreng).

At that time (January 1997), my initial project was to write my own 3D
rasterizer based on some old sources I wrote. But I realized that it
would be better to use OpenGL to work on any platform. My problem was
that I wanted to use texture mapping which was (and is still) quite
slower on many software OpenGL implementation. I could have modified
Mesa to suit my needs, but I really wanted to use my old sources for
that project.

I finally decided to use the same syntax as OpenGL but with my own
libraries, thinking that later it could ease the porting of VReng to
OpenGL.

Now VReng is at last compatible with OpenGL, and I managed to patch
TinyGL so that VReng can still work with it without any modifications.

Since TinyGL may be useful for some people, especially in the world of
embedded designs, I decided to release it 'as is', otherwise, it would
have been lost on my hard disk !

------------------------------------------------------------------------------
* OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
------------------------------------------------------------------------------
Fabrice Bellard. (Minor changes by Gerald Franz)