]> git.tdb.fi Git - libs/gl.git/log
libs/gl.git
12 years agoDon't expose the shader type enum
Mikko Rasa [Tue, 28 Aug 2012 10:34:09 +0000 (13:34 +0300)]
Don't expose the shader type enum

Instead take an object oriented approach.

12 years agoRoute rendering calls through Renderer and add an exclusion system
Mikko Rasa [Tue, 28 Aug 2012 10:18:41 +0000 (13:18 +0300)]
Route rendering calls through Renderer and add an exclusion system

This is necessary for generating environment maps for an object, since
the object itself should not be included in the map.  The alternative is
to create a separate Scene, but that's rather clumsy.

12 years agoFix an uninitialized variable
Mikko Rasa [Tue, 28 Aug 2012 10:08:16 +0000 (13:08 +0300)]
Fix an uninitialized variable

12 years agoMore efficient stack management
Mikko Rasa [Tue, 28 Aug 2012 09:10:38 +0000 (12:10 +0300)]
More efficient stack management

Vectors are better than lists, since they don't need to allocate new
memory for every element.  A suitably sized reserve() does away with any
initial reallocations in most cases.

ProgramData in Renderer can be stored in a semi-independent stack as
well, since it can only be removed with a pop.  State is now devoid of
dynamically allocated memory, making the stack operations even faster.

12 years agoFix color equations in the standard shaders
Mikko Rasa [Tue, 28 Aug 2012 08:30:30 +0000 (11:30 +0300)]
Fix color equations in the standard shaders

The generated shader code assigned a scalar to a vec3 if lighting was
enabled without texture or material.  An unnecessary multiplication in
the alpha equation with texture but no material was removed.

Also fix texturing in the shader demo (Mesa does funny things with
uniforms).

12 years agoProvide the necessary uniforms from ShadowMap
Mikko Rasa [Tue, 28 Aug 2012 07:50:17 +0000 (10:50 +0300)]
Provide the necessary uniforms from ShadowMap

With the recent changes to the Effect and Renderer, it's finally possible
to avoid the need to specify the shadow map texture unit everywhere, and
get rid of the hardcoded gl_EyePlane* indices.

12 years agoTweak the shader functions in Renderer
Mikko Rasa [Tue, 28 Aug 2012 07:39:19 +0000 (10:39 +0300)]
Tweak the shader functions in Renderer

Since ProgramData is no longer tied to a single Program, we can retain it
over program changes.  This opens up some new possibilities, in
particular for Effects.

Also rename set_shader to set_shader_program.

12 years agoCheck the relevant extensions when using pixel formats
Mikko Rasa [Mon, 27 Aug 2012 21:05:08 +0000 (00:05 +0300)]
Check the relevant extensions when using pixel formats

12 years agoComplete rewrite of extension handling
Mikko Rasa [Mon, 27 Aug 2012 20:22:10 +0000 (23:22 +0300)]
Complete rewrite of extension handling

Prefer the promoted versions of extensions.  This improves compatibility
with OpenGL 3.0 and OpenGL ES 2.0.

Extension availability is now checked through global identifiers rather
than strings.  This eliminates the possibility of typos.

12 years agoRemove the global drawing functions
Mikko Rasa [Mon, 27 Aug 2012 20:15:23 +0000 (23:15 +0300)]
Remove the global drawing functions

12 years agoPull glDrawRangeElements from version_1_2.h
Mikko Rasa [Sun, 26 Aug 2012 21:46:25 +0000 (00:46 +0300)]
Pull glDrawRangeElements from version_1_2.h

12 years agoPass the Renderer to ObjectInstance::get_level_of_detail
Mikko Rasa [Sun, 26 Aug 2012 21:38:08 +0000 (00:38 +0300)]
Pass the Renderer to ObjectInstance::get_level_of_detail

As I recall, the camera was put in renderer to allow view-dependent
rendering without the need to pass data outside the rendering pipeline.
This is one of the cases where it is needed.

12 years agoRemove alignment where it doesn't belong
Mikko Rasa [Sun, 26 Aug 2012 21:37:01 +0000 (00:37 +0300)]
Remove alignment where it doesn't belong

12 years agoFix an incorrect extension name
Mikko Rasa [Sun, 26 Aug 2012 21:31:35 +0000 (00:31 +0300)]
Fix an incorrect extension name

12 years agoUse DerivedObjectLoader in Texture2D
Mikko Rasa [Sun, 26 Aug 2012 21:30:54 +0000 (00:30 +0300)]
Use DerivedObjectLoader in Texture2D

12 years agoBuffer fixes in ProgramData
Mikko Rasa [Sun, 26 Aug 2012 21:29:46 +0000 (00:29 +0300)]
Buffer fixes in ProgramData

Set proper usage hint, and delete the buffer in the destructor.

12 years agoLots of comment updates
Mikko Rasa [Sun, 26 Aug 2012 21:27:03 +0000 (00:27 +0300)]
Lots of comment updates

12 years agoImprovements to Bufferable
Mikko Rasa [Sun, 26 Aug 2012 19:20:16 +0000 (22:20 +0300)]
Improvements to Bufferable

Most members are now private, with read-only accessors, since the derived
classes should not modify them.  Some names were changed.

Add documentation to the class and all public/protected methods.

12 years agoDrop support for Renderables that don't accept a Renderer
Mikko Rasa [Sun, 26 Aug 2012 17:32:02 +0000 (20:32 +0300)]
Drop support for Renderables that don't accept a Renderer

The Renderer class is the way of the future and should be used whenever
possible.

12 years agoAvoid creating blocks for which there are no uniforms
Mikko Rasa [Sun, 26 Aug 2012 13:13:36 +0000 (16:13 +0300)]
Avoid creating blocks for which there are no uniforms

Since this requires finding the relevant uniforms before the block is
created, might as well store the list with the block for faster updates.

12 years agoAlign uniform blocks properly
Mikko Rasa [Sun, 26 Aug 2012 12:06:15 +0000 (15:06 +0300)]
Align uniform blocks properly

12 years agoImprove performance of Bufferable::update_buffer_data
Mikko Rasa [Sun, 26 Aug 2012 12:03:21 +0000 (15:03 +0300)]
Improve performance of Bufferable::update_buffer_data

... by avoiding the walk through the entire chain every time it is
called.  It's not necessary to add up all the sizes either, since we can
just get the end of the last Bufferable.

12 years agoGet all blocks for the program before applying them
Mikko Rasa [Sun, 26 Aug 2012 10:09:44 +0000 (13:09 +0300)]
Get all blocks for the program before applying them

This way, the correct size for the buffer can be determined right away,
rather than each block resizing it in turn.  Binding the buffer before
applying the blocks also avoids some thrashing.

12 years agoPass the UniformBlockInfo to get_block to avoid an unnecessary lookup
Mikko Rasa [Sun, 26 Aug 2012 09:42:14 +0000 (12:42 +0300)]
Pass the UniformBlockInfo to get_block to avoid an unnecessary lookup

12 years agoSort the uniforms in Program::UniformBlockInfo by offset
Mikko Rasa [Sun, 26 Aug 2012 08:01:12 +0000 (11:01 +0300)]
Sort the uniforms in Program::UniformBlockInfo by offset

12 years agoAlter the working logic of Bufferable to avoid some problems
Mikko Rasa [Sun, 26 Aug 2012 07:53:56 +0000 (10:53 +0300)]
Alter the working logic of Bufferable to avoid some problems

It was possible for the buffer data to be updated without going through
the dirty check in UniformBlock::apply, leaving the UniformBlock with a
null buf_range and resulting in a segfault.

12 years agoInitialize buf_range as null
Mikko Rasa [Sat, 25 Aug 2012 19:28:54 +0000 (22:28 +0300)]
Initialize buf_range as null

12 years agoDon't query array/matrix stride for uniforms which are not arrays/matrices
Mikko Rasa [Sat, 25 Aug 2012 19:28:05 +0000 (22:28 +0300)]
Don't query array/matrix stride for uniforms which are not arrays/matrices

12 years agoConstruct uniform buffers for named uniform blocks
Mikko Rasa [Fri, 24 Aug 2012 21:55:06 +0000 (00:55 +0300)]
Construct uniform buffers for named uniform blocks

12 years agoAdd a class to negotiate the storage of multiple objects in a buffer
Mikko Rasa [Fri, 24 Aug 2012 21:50:00 +0000 (00:50 +0300)]
Add a class to negotiate the storage of multiple objects in a buffer

12 years agoUniform handling fixes
Mikko Rasa [Fri, 24 Aug 2012 21:47:01 +0000 (00:47 +0300)]
Uniform handling fixes

Initialize strides to zero, and return a location of -1 for uniforms in
blocks.

12 years agoStore block pointer in uniform info
Mikko Rasa [Fri, 24 Aug 2012 21:46:24 +0000 (00:46 +0300)]
Store block pointer in uniform info

It greatly simplifies figuring out which uniforms are not in blocks.

12 years agoQuery information about uniform blocks when linking a Program
Mikko Rasa [Fri, 24 Aug 2012 16:05:43 +0000 (19:05 +0300)]
Query information about uniform blocks when linking a Program

12 years agoMove Program::bind to its proper place
Mikko Rasa [Fri, 24 Aug 2012 07:48:32 +0000 (10:48 +0300)]
Move Program::bind to its proper place

12 years agoUse typedefs in Program
Mikko Rasa [Fri, 24 Aug 2012 07:43:25 +0000 (10:43 +0300)]
Use typedefs in Program

12 years agoAdd the uniform buffer type
Mikko Rasa [Fri, 24 Aug 2012 07:29:08 +0000 (10:29 +0300)]
Add the uniform buffer type

12 years agoImprove binding of buffers
Mikko Rasa [Fri, 24 Aug 2012 07:25:52 +0000 (10:25 +0300)]
Improve binding of buffers

Add a set_current function, as seen in some other classes.

Buffer type support is now also checked in bind_to.

12 years agoAdd glBindBufferBase/Range functions to ARB_uniform_buffer_object
Mikko Rasa [Fri, 24 Aug 2012 07:16:36 +0000 (10:16 +0300)]
Add glBindBufferBase/Range functions to ARB_uniform_buffer_object

For some reason those functions are not tagged for the extension in
gl.spec.

12 years agoKeep track of buffer size
Mikko Rasa [Thu, 23 Aug 2012 09:32:30 +0000 (12:32 +0300)]
Keep track of buffer size

12 years agoMove some declarations around a bit
Mikko Rasa [Thu, 23 Aug 2012 06:30:20 +0000 (09:30 +0300)]
Move some declarations around a bit

12 years agoRemove the specialized setters from UniformBlock
Mikko Rasa [Wed, 22 Aug 2012 13:17:34 +0000 (16:17 +0300)]
Remove the specialized setters from UniformBlock

They were not very useful and were also getting in the way of uniform
buffer support.  UniformBlock also no longer clones the uniforms for
itself, reducing overhead.

12 years agoAdd definitions for the GL_ARB_uniform_buffer_object extension
Mikko Rasa [Wed, 22 Aug 2012 13:08:50 +0000 (16:08 +0300)]
Add definitions for the GL_ARB_uniform_buffer_object extension

12 years agoUpdate gl.spec to latest version
Mikko Rasa [Wed, 22 Aug 2012 13:06:54 +0000 (16:06 +0300)]
Update gl.spec to latest version

12 years agoMake RenderPass shprog and shdata settable from code
Mikko Rasa [Wed, 22 Aug 2012 12:28:40 +0000 (15:28 +0300)]
Make RenderPass shprog and shdata settable from code

For consistency with other similar interfaces, the pointers are now
const.  As a consequence, a uniforms statement in a datafile overrides
any previous uniforms.

12 years agoAdd a shortcut constructor to Object
Mikko Rasa [Wed, 22 Aug 2012 11:22:36 +0000 (14:22 +0300)]
Add a shortcut constructor to Object

12 years agoAvoid re-applying shader data unnecessarily
Mikko Rasa [Tue, 21 Aug 2012 23:02:26 +0000 (02:02 +0300)]
Avoid re-applying shader data unnecessarily

12 years agoPlug a memory leak
Mikko Rasa [Tue, 21 Aug 2012 23:01:15 +0000 (02:01 +0300)]
Plug a memory leak

12 years agoUse uniform arrays in Bloom and AnimatedObject
Mikko Rasa [Tue, 21 Aug 2012 22:56:37 +0000 (01:56 +0300)]
Use uniform arrays in Bloom and AnimatedObject

12 years agoImplement uniform arrays
Mikko Rasa [Tue, 21 Aug 2012 10:12:03 +0000 (13:12 +0300)]
Implement uniform arrays

12 years agoRewrite the Uniform classes as templates
Mikko Rasa [Tue, 21 Aug 2012 09:58:36 +0000 (12:58 +0300)]
Rewrite the Uniform classes as templates

This makes adding new uniform types easier, especially arrays.

12 years agoConvert existing post-processors to use the provided common resources
Mikko Rasa [Mon, 20 Aug 2012 21:05:41 +0000 (00:05 +0300)]
Convert existing post-processors to use the provided common resources

12 years agoUse two FBOs in Pipeline when necessary
Mikko Rasa [Mon, 20 Aug 2012 20:55:59 +0000 (23:55 +0300)]
Use two FBOs in Pipeline when necessary

12 years agoAdd a color curve post-processor
Mikko Rasa [Mon, 20 Aug 2012 20:30:51 +0000 (23:30 +0300)]
Add a color curve post-processor

12 years agoHelper functions for post-processors
Mikko Rasa [Mon, 20 Aug 2012 20:27:28 +0000 (23:27 +0300)]
Helper functions for post-processors

Most post-processors render fullscreen quads and use a very basic vertex
shader, so it makes sense to provide these as common resources.

12 years agoSimplify Pipeline pass management
Mikko Rasa [Mon, 20 Aug 2012 13:13:46 +0000 (16:13 +0300)]
Simplify Pipeline pass management

Originally I planned to use Pipelines to bundle objects with effects like
environmentally mapped reflection.  However, that task was delegated to
effects themselves recently, so there's no longer need for passthrough
rendering in Pipeline.  The render_all function was also a nuisance, as
it required Pipelines to be treated differently from other Renderables.

Passes are now stored in a list instead of a map.  This allows multiple
passes with the same tag (think multipass lighting), and avoids the need
to store the pass order separately.

12 years agoMove PipelinePass inside Pipeline and make the data members private
Mikko Rasa [Mon, 20 Aug 2012 12:39:26 +0000 (15:39 +0300)]
Move PipelinePass inside Pipeline and make the data members private

It's really simple and specific to Pipeline, so it doesn't make much
sense to have it as a separate class.  Encapsulation is necessary for
some future plans, and also more consistent with other public interfaces.

12 years agoUse the hash function from mspcore
Mikko Rasa [Sun, 19 Aug 2012 23:46:45 +0000 (02:46 +0300)]
Use the hash function from mspcore

Constructing tags mostly happens when loading datafiles or otherwise
outside the rendering loop, so the small extra overhead from a
cross-library function call is not significant.  Renderables that wish to
compare the Tag against a fixed value should avoid constructing the
reference Tag on every render call anyway.

12 years agoDelete multisample resources in Pipeline destructor
Mikko Rasa [Sun, 19 Aug 2012 11:16:20 +0000 (14:16 +0300)]
Delete multisample resources in Pipeline destructor

12 years agoLighting affecting the alpha value of a surface makes no sense
Mikko Rasa [Sun, 19 Aug 2012 00:34:22 +0000 (03:34 +0300)]
Lighting affecting the alpha value of a surface makes no sense

Use lighting only for RGB components, and take alpha directly from color
or material.  This should prevent problems caused by alpha>1.

12 years agoUse the TexGen wrapper in ShadowMap
Mikko Rasa [Thu, 16 Aug 2012 19:21:09 +0000 (22:21 +0300)]
Use the TexGen wrapper in ShadowMap

12 years agoAdd TexGen wrapper class
Mikko Rasa [Thu, 16 Aug 2012 19:19:28 +0000 (22:19 +0300)]
Add TexGen wrapper class

12 years agoTurn Effect into a Renderable
Mikko Rasa [Thu, 16 Aug 2012 16:46:12 +0000 (19:46 +0300)]
Turn Effect into a Renderable

They were really intended to be used this way.  This also makes it much
easier to apply an Effect to only a part of a scene.  Previously it would
have been necessary to wrap the Effect in a Pipeline, which doesn't
really support passthrough.

12 years agoRestructure ProgramData to support sharing between Programs
Mikko Rasa [Wed, 15 Aug 2012 19:36:33 +0000 (22:36 +0300)]
Restructure ProgramData to support sharing between Programs

This removes a major annoyance when dealing with ObjectInstances and
shaders.  It also paves way for Effects being able to provide uniforms,
and support for GL_ARB_uniform_buffer_object.

12 years agoGenerate a hash describing the layout of uniforms in a Program
Mikko Rasa [Wed, 15 Aug 2012 19:32:28 +0000 (22:32 +0300)]
Generate a hash describing the layout of uniforms in a Program

This allows easy recognition of whether two Programs have compatible
uniform layouts and could use shared data.

12 years agoAdd a function to query if a Technique has any shaders
Mikko Rasa [Wed, 15 Aug 2012 19:31:03 +0000 (22:31 +0300)]
Add a function to query if a Technique has any shaders

Also make PassMap public since it's exposed through get_passes

12 years agoFor a few lingering whitespace issues
Mikko Rasa [Wed, 15 Aug 2012 19:18:09 +0000 (22:18 +0300)]
For a few lingering whitespace issues

The scripts had been ignored entirely in the previous conversion.  As a
result, a few newly generated extensions didn't have proper whitespace.
Pure virtual functions in headers had also slipped through.

12 years agoMake the cubemap demo more interesting
Mikko Rasa [Mon, 13 Aug 2012 21:26:40 +0000 (00:26 +0300)]
Make the cubemap demo more interesting

It now displays two different shapes, which have reflections through an
environment map.  The same environment map is used to render a skybox.

Also uses the new direction lookup functions to create the contents for
the cube map texture.

12 years agoTangent and binormal vectors should use custom transform as well
Mikko Rasa [Mon, 13 Aug 2012 21:26:21 +0000 (00:26 +0300)]
Tangent and binormal vectors should use custom transform as well

12 years agoAdd a standard program feature for environment-mapped reflections
Mikko Rasa [Mon, 13 Aug 2012 21:21:05 +0000 (00:21 +0300)]
Add a standard program feature for environment-mapped reflections

12 years agoLookup functions to determine the orientation of cube map faces
Mikko Rasa [Mon, 13 Aug 2012 17:47:53 +0000 (20:47 +0300)]
Lookup functions to determine the orientation of cube map faces

The orientations are somewhat arbitary and not deducible with a simple
algorithm.  Writing the necessary conditional ladders everywhere would
be annoying.

12 years agoFix several bugs in the animation system
Mikko Rasa [Mon, 13 Aug 2012 12:25:54 +0000 (15:25 +0300)]
Fix several bugs in the animation system

Make the identity fallback matrix static so the pointers in interpolations
stay valid.

Don't crash when getting pose matrices from the first keyframe.

Matrix multiplication order for base point shift compensation was wrong.

Re-compensate for base point shift after interpolation.

Use correct comparison operator for max_index in AnimationPlayer.

Pass collection to keyframe loader to make loading poses possible.

Use Pose::set_armature rather than loading the pointer directly to get the
matrix array resized.

12 years agoSupport for exporting armatures and vertex groups
Mikko Rasa [Mon, 13 Aug 2012 10:18:43 +0000 (13:18 +0300)]
Support for exporting armatures and vertex groups

12 years agoRestructure the exporter to make room for new stuff
Mikko Rasa [Sun, 12 Aug 2012 16:06:29 +0000 (19:06 +0300)]
Restructure the exporter to make room for new stuff

12 years agoFix bugs that crept in with refactoring
Mikko Rasa [Sun, 12 Aug 2012 15:53:52 +0000 (18:53 +0300)]
Fix bugs that crept in with refactoring

Also add an additional safeguard against an infinite loop

12 years agoSupport for armature-based animation
Mikko Rasa [Sun, 12 Aug 2012 09:21:05 +0000 (12:21 +0300)]
Support for armature-based animation

12 years agoAllow setting keyframe matrix from the outside
Mikko Rasa [Sun, 12 Aug 2012 09:13:17 +0000 (12:13 +0300)]
Allow setting keyframe matrix from the outside

12 years agoFix uniform array element lookup
Mikko Rasa [Sun, 12 Aug 2012 09:07:38 +0000 (12:07 +0300)]
Fix uniform array element lookup

12 years agoAdd classes for armature-based deformation
Mikko Rasa [Sun, 12 Aug 2012 08:25:55 +0000 (11:25 +0300)]
Add classes for armature-based deformation

For now, link rotations in a pose must be specified in hierarchial order,
or the matrices will be wrong.

12 years agoExpose the build(Mesh &) shortcut in classes derived from GeometryBuilder
Mikko Rasa [Sat, 11 Aug 2012 18:43:18 +0000 (21:43 +0300)]
Expose the build(Mesh &) shortcut in classes derived from GeometryBuilder

12 years agoAdd missing set_looping implementation
Mikko Rasa [Sat, 11 Aug 2012 18:29:41 +0000 (21:29 +0300)]
Add missing set_looping implementation

12 years agoRestructure Animation to make matrix interpolation code more reusable
Mikko Rasa [Sat, 11 Aug 2012 18:28:15 +0000 (21:28 +0300)]
Restructure Animation to make matrix interpolation code more reusable

12 years agoDon't link program with the transform feature in constructor
Mikko Rasa [Sat, 11 Aug 2012 13:38:35 +0000 (16:38 +0300)]
Don't link program with the transform feature in constructor

The transform feature produces calls to external functions, which need to
be added in a separate shader.  Trying to link in the constructor only
produces link errors.

12 years agoBetter way to deal with program-owned shaders
Mikko Rasa [Sat, 11 Aug 2012 13:36:30 +0000 (16:36 +0300)]
Better way to deal with program-owned shaders

Track which shaders exactly are owned by the program rather than having
just a single flag.  This prevents double-free problems if a program
contains both owned and non-owned shaders, as might be the case with the
transform feature.

12 years agoAn extra sanity check for TBN export
Mikko Rasa [Thu, 9 Aug 2012 20:22:35 +0000 (23:22 +0300)]
An extra sanity check for TBN export

12 years agoRefactor strip generation code and add comments
Mikko Rasa [Thu, 9 Aug 2012 20:21:45 +0000 (23:21 +0300)]
Refactor strip generation code and add comments

12 years agoUpdate .gitignore
Mikko Rasa [Thu, 9 Aug 2012 19:36:03 +0000 (22:36 +0300)]
Update .gitignore

12 years agoA simple program to test cubemap texture functionality
Mikko Rasa [Thu, 9 Aug 2012 19:35:39 +0000 (22:35 +0300)]
A simple program to test cubemap texture functionality

12 years agoMove some member functions to more logical positions
Mikko Rasa [Thu, 9 Aug 2012 19:34:23 +0000 (22:34 +0300)]
Move some member functions to more logical positions

12 years agoComment updates for texture and framebuffer classes.
Mikko Rasa [Thu, 9 Aug 2012 19:32:47 +0000 (22:32 +0300)]
Comment updates for texture and framebuffer classes.

12 years agoFix 3D texture loading with fixed depth
Mikko Rasa [Thu, 9 Aug 2012 19:16:30 +0000 (22:16 +0300)]
Fix 3D texture loading with fixed depth

12 years agoAdd support for cube map textures
Mikko Rasa [Thu, 9 Aug 2012 18:07:43 +0000 (21:07 +0300)]
Add support for cube map textures

12 years agoMipmap generation requires GL_SGIS_generate_mipmap
Mikko Rasa [Thu, 9 Aug 2012 07:21:08 +0000 (10:21 +0300)]
Mipmap generation requires GL_SGIS_generate_mipmap

12 years agoUpdate Build file for new Builder features
Mikko Rasa [Sun, 5 Aug 2012 18:43:37 +0000 (21:43 +0300)]
Update Build file for new Builder features

12 years agoAdd support for viewing animations
Mikko Rasa [Sun, 5 Aug 2012 12:53:41 +0000 (15:53 +0300)]
Add support for viewing animations

12 years agoBasic animation support
Mikko Rasa [Sun, 5 Aug 2012 12:26:23 +0000 (15:26 +0300)]
Basic animation support

12 years agoUse a custom drawing function to group the properties in a sensible way
Mikko Rasa [Tue, 31 Jul 2012 23:35:29 +0000 (02:35 +0300)]
Use a custom drawing function to group the properties in a sensible way

12 years agoSupport exporting textures with objects
Mikko Rasa [Tue, 31 Jul 2012 23:07:55 +0000 (02:07 +0300)]
Support exporting textures with objects

12 years agoImprove texture unit handling
Mikko Rasa [Tue, 31 Jul 2012 22:49:59 +0000 (01:49 +0300)]
Improve texture unit handling

12 years agoMore compilation fixes
Mikko Rasa [Tue, 31 Jul 2012 22:36:23 +0000 (01:36 +0300)]
More compilation fixes

12 years agoDon't try to export a material texture if the mesh has no materials
Mikko Rasa [Tue, 31 Jul 2012 21:03:27 +0000 (00:03 +0300)]
Don't try to export a material texture if the mesh has no materials