-
Notifications
You must be signed in to change notification settings - Fork 22
/
README
107 lines (79 loc) · 3.86 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
=============================================================
= __ __ _ ___ __ __ __ =
= \ \ / /__| |__ / __)( ) ( )( ) =
= \ \/\/ / -_) '_ ( (_-. )(__ )(__)( =
= \_/\_/\___|_.__/\___/(____)(______) =
= ===================================== =
=============================================================
I AM TAKING FEATURE/DEMO/IMPLEMENTATION DETAIL SUGGESTIONS
Email: [email protected]
AIM: BenjaminDeLilo
WebGLU is both a set of low-level utilities and a high-level
engine for developing WebGL based applications.
WebGLU is designed such that a developer can focus on the
end result with a minimum of fuss and code, but doesn't hand
hold developers who want more control. This is achieved by
exposing the raw GL object and also many lower-level
functions for working with it and the WebGL API.
WebGLU's "point" is to seperate the act of rendering from
the act of defining what to render and how to render it.
This means all objects, shaders, attributes, uniforms, etc.
and their interactions, can be dealt with up-front as
opposed to strewn throughout the rendering code. As far as
rendering code goes, unless you want to mess around with
low level, the only rendering related call you need to
worry yourself about is $W.draw().
A partial list of features includes:
* Designed with performance in mind. Any performance
criticisms are taken very seriously.
For shaders and shader programs
* Can load directly from .frag/.vert/.vp/.fp files
(and automatically assign the right shader type)
* Create on attach - loads and sets-up the shader from
within shaderProgram.attachShader()
* All compiling and linking is handled automatically, as
needed
* Automatically sets up any projection/modelview uniforms
For rendering
* Provides projection and modelview matrix-stacks which
approximate the behavior of OpenGL matrix modes
For renderable objects
* Automaticaly creates array/element buffers as necessary
and binds them as needed during rendering.
* Each object can be assigned a different shader program
* Store data for shader attributes simply with a single
call
* A partial .obj parser is implemented to load objects
* Now supports object hierarchies!
* Static image and video textures
(canvas textures are planned)
For animation
* Procedural animations are as easy as overriding
myobject.animation.update()
* Keyframe animations are almost as simple
myobject.animation = new $W.anim.KeyFrameAnimation();
myFrame = new $W.anim.KeyFrame(pos, rot, scale, time);
myobject.animation.addKeyframe(myFrame);
* You can mix animation types within an object hierarchy
For interaction
* GameGLU companion library provides for easy keybinding
============================================================
Copyright (c) 2009 Benjamin P. DeLillo
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.