]>
git.tdb.fi Git - libs/gl.git/log
Mikko Rasa [Fri, 29 Nov 2013 08:46:27 +0000 (10:46 +0200)]
Remove vertex array tracking from Renderer
It's unnecessary because VertexArray has its own state tracking and never
needs to be unbound.
Mikko Rasa [Thu, 28 Nov 2013 20:21:59 +0000 (22:21 +0200)]
Move vertex buffer management from VertexArray to Mesh
It was getting in the way of implementing vertex array objects.
Mikko Rasa [Thu, 28 Nov 2013 12:51:23 +0000 (14:51 +0200)]
Restore old samples value if create_targets fails
An application could use try-catch to check if a certain level of
multisampling is available, and leaving samples to that value would
interfere with later operations.
Mikko Rasa [Thu, 28 Nov 2013 12:42:58 +0000 (14:42 +0200)]
Remove get(int *)
By contrast to the previous commit, this was rather useless and not
actually used anywhere in the code.
Mikko Rasa [Thu, 28 Nov 2013 12:39:49 +0000 (14:39 +0200)]
Use wrappers for single-value glGet* calls
Having to create temporary stack variables just for passing in the return
pointer is quite annoying.
Mikko Rasa [Thu, 28 Nov 2013 12:24:11 +0000 (14:24 +0200)]
Check range when attaching Lights to a Lighting
Mikko Rasa [Thu, 28 Nov 2013 12:23:30 +0000 (14:23 +0200)]
Fix some incorrect whitespace
Mikko Rasa [Thu, 28 Nov 2013 12:14:56 +0000 (14:14 +0200)]
Better state tracking for bound objects
Mikko Rasa [Thu, 28 Nov 2013 11:11:35 +0000 (13:11 +0200)]
Give TexEnv a default object since it can't be disabled
Mikko Rasa [Thu, 28 Nov 2013 00:02:49 +0000 (02:02 +0200)]
Rewrite light binding to match textures
Both have multiple multiple parallel bind points, so it makes sense they
behave in the same way.
Mikko Rasa [Wed, 27 Nov 2013 21:23:33 +0000 (23:23 +0200)]
Always bind textures in a specific texture unit
This eliminates one level of global state, simplifying the API and
offering new optimization possibilities. Since single-texturing is a
common use case, the parameterless bind/unbind functions have been left
in but changed to operate on unit 0.
Mikko Rasa [Wed, 27 Nov 2013 10:05:01 +0000 (12:05 +0200)]
Remove ambient color from Light
It doesn't make much sense, as there's already the global ambient color in
Lighting. I haven't ever used it either, so remove directly instead of
deprecating.
Mikko Rasa [Wed, 27 Nov 2013 09:56:01 +0000 (11:56 +0200)]
Remove some deprecated stuff
Mikko Rasa [Wed, 27 Nov 2013 09:06:38 +0000 (11:06 +0200)]
Convert Matrix to use floats
This halves matrix storage size to 64 bytes and reduces overhead from
conversions at certain places. If an application desires greater
precision, it can use the LinAl::Matrix and Geometry::AffineTransformation
classes internally.
Mikko Rasa [Wed, 27 Nov 2013 08:30:26 +0000 (10:30 +0200)]
Make TexUnits aware of their incides
Mikko Rasa [Mon, 25 Nov 2013 18:29:32 +0000 (20:29 +0200)]
Unbind Lighting in Renderer destructor
This solves a problem where the same lightning would get bound later and
retain an incorrect matrix due to already being bound. It's not really a
proper fix but works in the most common cases.
Mikko Rasa [Mon, 25 Nov 2013 15:25:22 +0000 (17:25 +0200)]
Check and report the use of legacy built-in variables in a program
Mikko Rasa [Mon, 25 Nov 2013 15:24:49 +0000 (17:24 +0200)]
Use sizeof when passing buffer size
Mikko Rasa [Mon, 25 Nov 2013 15:24:18 +0000 (17:24 +0200)]
Be more direct about getting uniform counts from the program object
Mikko Rasa [Mon, 25 Nov 2013 15:22:12 +0000 (17:22 +0200)]
Add function to check GLSL version
Mikko Rasa [Mon, 25 Nov 2013 15:21:46 +0000 (17:21 +0200)]
Refactor version number extraction and checks
Mikko Rasa [Mon, 25 Nov 2013 14:23:51 +0000 (16:23 +0200)]
Store and expose the projection matrix
Mikko Rasa [Mon, 25 Nov 2013 14:21:57 +0000 (16:21 +0200)]
Make better use of matrix operations in Camera
Mikko Rasa [Fri, 11 Oct 2013 12:53:16 +0000 (15:53 +0300)]
Homogenise binding semantics
Objects that wrap always-on state should restore default states when
unbound.
Enable/disable of otherwise global state should be exposed through
binding, not a flag in an object.
Mikko Rasa [Fri, 11 Oct 2013 11:51:41 +0000 (14:51 +0300)]
Deal with nontrivial image configurations
Mikko Rasa [Thu, 10 Oct 2013 12:24:09 +0000 (15:24 +0300)]
Get function pointers on OS X through weak symbols
Mikko Rasa [Thu, 10 Oct 2013 12:23:19 +0000 (15:23 +0300)]
Extract parameter and return type information from gl.xml
Mikko Rasa [Fri, 4 Oct 2013 11:11:35 +0000 (14:11 +0300)]
Have the maketex script take texture parameters as options
Mikko Rasa [Thu, 3 Oct 2013 21:21:26 +0000 (00:21 +0300)]
Add a shortcut for specifying both texture filters
Mikko Rasa [Thu, 3 Oct 2013 08:02:04 +0000 (11:02 +0300)]
Final touches of OS X support
Mikko Rasa [Thu, 3 Oct 2013 07:57:40 +0000 (10:57 +0300)]
Include extension headers in places that need enums from them
A few places still rely on gl.h for OpenGL 1.3 or 1.4 enums. I may look
into these later.
Mikko Rasa [Thu, 3 Oct 2013 07:49:31 +0000 (10:49 +0300)]
Check the presence of extension rather than function
Mikko Rasa [Thu, 3 Oct 2013 07:24:53 +0000 (10:24 +0300)]
Minor fixes, courtesy of Apple's compiler
It likes to complain about a lot of things. Some of them make sense (like
unused private members), but mostly it's just being a bitch.
Mikko Rasa [Wed, 2 Oct 2013 17:58:28 +0000 (20:58 +0300)]
Add a missing initialization
Mikko Rasa [Wed, 2 Oct 2013 17:43:24 +0000 (20:43 +0300)]
Deal with extensions that are not present at compile time
Mikko Rasa [Wed, 2 Oct 2013 12:12:22 +0000 (15:12 +0300)]
Cleanup and documentation of extgen.py
Mikko Rasa [Wed, 2 Oct 2013 11:36:25 +0000 (14:36 +0300)]
Migrate to the new XML-based OpenGL API registry
Mikko Rasa [Wed, 2 Oct 2013 08:20:03 +0000 (11:20 +0300)]
Always include glext.h
There's no real reason to leave it out, and having it in multiple places
causes trouble for the upcoming OS X support.
Mikko Rasa [Wed, 2 Oct 2013 07:56:28 +0000 (10:56 +0300)]
Set read buffer as well as draw buffer for FBO
Apparently Nvidia drivers are too lax with this, but some others don't
like if the FBO has no color attachments and the read buffer is left at
its default setting of COLOR_ATTACHMENT0.
Mikko Rasa [Sat, 21 Sep 2013 17:06:54 +0000 (20:06 +0300)]
Make cube map textures loadable from datafiles
Mikko Rasa [Sat, 21 Sep 2013 17:06:17 +0000 (20:06 +0300)]
Support off-center frustum in Camera
Mikko Rasa [Sat, 21 Sep 2013 09:59:22 +0000 (12:59 +0300)]
Add a Scene type that sorts its renderables by depth
Mikko Rasa [Fri, 13 Sep 2013 13:27:55 +0000 (16:27 +0300)]
Stereographic rendering moved to a separate library (mspvr)
Mikko Rasa [Wed, 11 Sep 2013 09:31:28 +0000 (12:31 +0300)]
Add an option to export colors as sRGB
Mikko Rasa [Wed, 11 Sep 2013 09:06:30 +0000 (12:06 +0300)]
Deal with some irregularities in the Blender exporter
Things like loose vertices, non-manifold edges or zero-length edges should
no longer cause crashes.
Mikko Rasa [Wed, 11 Sep 2013 09:03:03 +0000 (12:03 +0300)]
Add some documentation to the culler system
Mikko Rasa [Wed, 11 Sep 2013 09:02:11 +0000 (12:02 +0300)]
Rename Culler::setup_frame to setup_pass
It's really called once per pass, so name it accordingly.
Mikko Rasa [Wed, 11 Sep 2013 08:02:43 +0000 (11:02 +0300)]
Add a frustum culler class
Mikko Rasa [Wed, 11 Sep 2013 07:53:41 +0000 (10:53 +0300)]
Add an interface for obtaining bounding spheres from renderables
This can be used for various forms of culling.
Mikko Rasa [Mon, 9 Sep 2013 16:06:44 +0000 (19:06 +0300)]
Add interfaces for culling
Culler implementations to come soon.
Mikko Rasa [Mon, 9 Sep 2013 16:00:40 +0000 (19:00 +0300)]
Add a flag to RenderPass to render the back faces of a mesh
This is useful for transparency effects.
Mikko Rasa [Mon, 9 Sep 2013 15:57:21 +0000 (18:57 +0300)]
Throw if trying to render an Object without a Technique
Mikko Rasa [Mon, 9 Sep 2013 15:56:15 +0000 (18:56 +0300)]
Make RenderPass easier to use
Mikko Rasa [Sat, 7 Sep 2013 14:12:15 +0000 (17:12 +0300)]
Use Renderer to bind Lighting
This fixes a problem where the matrix left behind by a pipeline pass could
interfere with the lighting of the next pass. It's also required for
eventually supporting OpenGL 3.0+ without fixed-function lighting.
Mikko Rasa [Sat, 7 Sep 2013 14:09:39 +0000 (17:09 +0300)]
Add kerning support to Font
Mikko Rasa [Thu, 5 Sep 2013 19:22:00 +0000 (22:22 +0300)]
Make the font script compatible with new ttf2png output
Mikko Rasa [Tue, 20 Aug 2013 15:27:43 +0000 (18:27 +0300)]
Do not store generated files in the repository
Instead generate them during the build process. This helps with managing
any changes that might be necessary when porting to new platforms.
Mikko Rasa [Tue, 18 Jun 2013 22:11:31 +0000 (01:11 +0300)]
Add a StereoCombiner subclass for the Oculus Rift
Mikko Rasa [Tue, 18 Jun 2013 21:30:18 +0000 (00:30 +0300)]
Field of view is an angle too
Mikko Rasa [Tue, 18 Jun 2013 15:11:20 +0000 (18:11 +0300)]
Add classes for stereographic rendering
Mikko Rasa [Tue, 18 Jun 2013 14:52:52 +0000 (17:52 +0300)]
Some fixes to the Build file
Mikko Rasa [Tue, 18 Jun 2013 14:38:29 +0000 (17:38 +0300)]
Render final pipeline output into the bound framebuffer
Mikko Rasa [Sat, 15 Jun 2013 18:15:22 +0000 (21:15 +0300)]
Function pointer typedefs for core functions are not available everywhere
Mikko Rasa [Thu, 23 May 2013 20:14:27 +0000 (23:14 +0300)]
Add overloads for rotation functions that take axis as three coordinates
Mikko Rasa [Thu, 23 May 2013 20:13:43 +0000 (23:13 +0300)]
Use constructors to augment and reduce vectors
Mikko Rasa [Sat, 18 May 2013 21:35:50 +0000 (00:35 +0300)]
Remove an obsolete #include
Mikko Rasa [Sat, 18 May 2013 21:35:33 +0000 (00:35 +0300)]
Fix event bindings
Mikko Rasa [Sat, 18 May 2013 21:27:42 +0000 (00:27 +0300)]
Use libmspmath to provide vector and matrix operations
Pulling them from a math library enables interoperability for programs
where it is desirable for some parts to avoid an OpenGL dependency. A
full complement of vector operations helps with readable code.
The flag tracking from Matrix was removed as a benchmark showed it to
actually hurt performance with compiler optimizations enabled.
Mikko Rasa [Fri, 3 May 2013 22:09:18 +0000 (01:09 +0300)]
Auto smooth angle is stored in radians, not degrees
This probably got changed since Blender 2.4, but had gone unnoticed.
Mikko Rasa [Thu, 11 Apr 2013 20:21:50 +0000 (23:21 +0300)]
Add support for playing multiple stacked animations on an object
Mikko Rasa [Thu, 11 Apr 2013 19:58:52 +0000 (22:58 +0300)]
Force some c'tors and d'tors to be emitted in the library
Forward declaring class A and having a RefPtr to it in class B causes
trouble if B's constructor or destructor is synthesized at a location
where A's definition is not visible.
Mikko Rasa [Thu, 11 Apr 2013 19:34:15 +0000 (22:34 +0300)]
Fix axis interpolation to work with scaling
Mikko Rasa [Thu, 28 Mar 2013 18:44:21 +0000 (20:44 +0200)]
Disable NV_primitive_restart on Radeon cards because it's buggy
Mikko Rasa [Wed, 16 Jan 2013 17:04:20 +0000 (19:04 +0200)]
Fix shaders in the desertpillars demo
Mikko Rasa [Wed, 16 Jan 2013 16:49:56 +0000 (18:49 +0200)]
Make Texture2D::image(Graphics::Image) public
Mikko Rasa [Wed, 16 Jan 2013 16:49:23 +0000 (18:49 +0200)]
Use IO::Memory to load embedded texture image data
Mikko Rasa [Sat, 29 Dec 2012 17:51:55 +0000 (19:51 +0200)]
Verify framebuffer completeness in effect constructors
This avoids silent failures due to an unsupported framebuffer
configuration.
Mikko Rasa [Sat, 29 Dec 2012 15:09:17 +0000 (17:09 +0200)]
Improve pipeline render target management
Recreate render targets if number of samples is changed.
Don't create render targets if neither postprocessing nor multisampling is
active. HDR is only useful with postprocessors (maybe postprocessors
should be able to request HDR?).
Call fbo.require_complete to allow trial-and-error autodetection of
rendering configuration.
Mikko Rasa [Sat, 29 Dec 2012 12:13:20 +0000 (14:13 +0200)]
Add a function to require the completeness of a framebuffer
Mikko Rasa [Wed, 12 Dec 2012 15:39:26 +0000 (17:39 +0200)]
Move uniform array name adjustment to an earlier phase
Uniforms are looked up by the map key, so it won't do any good if the name
stored in the UniformInfo is adjusted by the map key isn't.
Mikko Rasa [Fri, 30 Nov 2012 20:29:21 +0000 (22:29 +0200)]
Remove deprecated matrix APIs
Mikko Rasa [Wed, 28 Nov 2012 20:08:16 +0000 (22:08 +0200)]
Change Font::add_glyph to take a glyph struct
Did I seriously think that a function with 10 parameters was a good idea?
Mikko Rasa [Wed, 28 Nov 2012 19:30:22 +0000 (21:30 +0200)]
Remove deprecated Font features
Mikko Rasa [Wed, 28 Nov 2012 18:22:09 +0000 (20:22 +0200)]
Change font methods to better differentiate between drawing and building
Mikko Rasa [Sat, 24 Nov 2012 19:42:19 +0000 (21:42 +0200)]
Re-apply vertex array if it has been modified
Mikko Rasa [Sat, 17 Nov 2012 22:14:58 +0000 (00:14 +0200)]
More robust handling of uniform arrays
Mikko Rasa [Sat, 3 Nov 2012 13:54:33 +0000 (15:54 +0200)]
Fix some warnings about uninitialized variables
In reality they are always initialized when they're used, but the compiler
doesn't necessarily know that.
Mikko Rasa [Sat, 3 Nov 2012 13:53:40 +0000 (15:53 +0200)]
Let Batch decide whether appending is possible
Mikko Rasa [Sat, 3 Nov 2012 13:35:43 +0000 (15:35 +0200)]
Fix a comparison with restart_index
An incorrect comparison operator caused a batch meeting certain criteria
to unintentionally trigger a primitive restart with its last index instead
of rendering it properly.
Mikko Rasa [Sat, 3 Nov 2012 13:32:42 +0000 (15:32 +0200)]
Add setup/finish_render hooks to Object
Mikko Rasa [Sat, 3 Nov 2012 13:27:45 +0000 (15:27 +0200)]
Implement assignment operator for ProgramData
This is possible now that ProgramData no longer contains any references.
Mikko Rasa [Fri, 14 Sep 2012 21:55:32 +0000 (00:55 +0300)]
Use CLAMP_TO_EDGE on postprocessing textures
Mikko Rasa [Fri, 14 Sep 2012 21:54:48 +0000 (00:54 +0300)]
Remove useless GL:: qualifiers
AmbientOcclusion was initially developed outside the mspgl tree, and these
were not removed when it was brought in.
Mikko Rasa [Thu, 13 Sep 2012 08:36:07 +0000 (11:36 +0300)]
Fix type errors in ColorCurve fragment shader
Mikko Rasa [Wed, 12 Sep 2012 19:12:54 +0000 (22:12 +0300)]
Version bump; compatibility was lost weeks ago
Mikko Rasa [Wed, 12 Sep 2012 18:58:34 +0000 (21:58 +0300)]
A complex demo program to show off features of the engine
Mikko Rasa [Wed, 12 Sep 2012 18:04:59 +0000 (21:04 +0300)]
Plug a memory leak
Mikko Rasa [Wed, 12 Sep 2012 17:05:06 +0000 (20:05 +0300)]
Don't unbind the fbo until the entire cube map has been rendered
Mikko Rasa [Wed, 12 Sep 2012 07:35:46 +0000 (10:35 +0300)]
Support for anisotropic texture filtering
Mikko Rasa [Tue, 11 Sep 2012 20:55:25 +0000 (23:55 +0300)]
Make it possible to customize texture sampling in standard shaders