]> git.tdb.fi Git - libs/gl.git/log
libs/gl.git
7 years agoRemove some VariableResolver calls that are no longer needed
Mikko Rasa [Fri, 2 Dec 2016 10:24:14 +0000 (12:24 +0200)]
Remove some VariableResolver calls that are no longer needed

Now that nodes don't get copied when moving around the previously
resolved declaration pointers will stay valid.

7 years agoUpgrade NodePtr to RefPtr
Mikko Rasa [Thu, 1 Dec 2016 11:29:29 +0000 (13:29 +0200)]
Upgrade NodePtr to RefPtr

Allows Nodes to be moved from one Block to another without copying them.
When targeting GLSL 1.30 LegacyConverter has a sequence where it flattens
an interface block and later checks the type of those variables through
their declaration pointer.  This caused memory errors because the
original nodes were destroyed in the flatten operation.

7 years agoSome fixes for the scene exporter
Mikko Rasa [Wed, 30 Nov 2016 22:39:34 +0000 (00:39 +0200)]
Some fixes for the scene exporter

7 years agoImprove the color curve postprocessor
Mikko Rasa [Mon, 28 Nov 2016 21:31:19 +0000 (23:31 +0200)]
Improve the color curve postprocessor

7 years agoProperly scale the the bounding sphere for frustum culling
Mikko Rasa [Mon, 28 Nov 2016 00:20:20 +0000 (02:20 +0200)]
Properly scale the the bounding sphere for frustum culling

The original radius must be squared too.  Also, negative distances mean
the sphere is inside the frustum and should not be culled.

7 years agoUse Renderer for rendering PostProcessors
Mikko Rasa [Sat, 26 Nov 2016 11:09:00 +0000 (13:09 +0200)]
Use Renderer for rendering PostProcessors

8 years agoEnsure that DepthTest and Blend get unbound for PostProcessors
Mikko Rasa [Sat, 26 Nov 2016 05:29:20 +0000 (07:29 +0200)]
Ensure that DepthTest and Blend get unbound for PostProcessors

8 years agoDeprecate Renderer::begin() and remove the already deprecated escape()
Mikko Rasa [Sat, 26 Nov 2016 05:01:36 +0000 (07:01 +0200)]
Deprecate Renderer::begin() and remove the already deprecated escape()

8 years agoMake the camera part of changeable Renderer state
Mikko Rasa [Sat, 26 Nov 2016 04:56:54 +0000 (06:56 +0200)]
Make the camera part of changeable Renderer state

I'd like to move to a single, persistent renderer at some point and this
is a necessary step towards that.  Some effects want to use their own
camera to render into an FBO.

8 years agoSet the appropriate flags on Renderer state changes
Mikko Rasa [Sat, 26 Nov 2016 04:52:39 +0000 (06:52 +0200)]
Set the appropriate flags on Renderer state changes

8 years agoAccount for scale when performing frustum culling
Mikko Rasa [Fri, 25 Nov 2016 21:19:08 +0000 (23:19 +0200)]
Account for scale when performing frustum culling

It will still break with non-uniform scaling.

8 years agoEvaluate parenthesized expression as the contained expression's value
Mikko Rasa [Fri, 25 Nov 2016 12:22:38 +0000 (14:22 +0200)]
Evaluate parenthesized expression as the contained expression's value

8 years agoUse layout declarations to set attribute and fragment data locations
Mikko Rasa [Sat, 19 Nov 2016 16:24:18 +0000 (18:24 +0200)]
Use layout declarations to set attribute and fragment data locations

A fallback to glBind*Location functions is provided in case the
implementation does not support GLSL 3.30.

8 years agoSupport layout declarations on variables
Mikko Rasa [Sat, 19 Nov 2016 16:23:58 +0000 (18:23 +0200)]
Support layout declarations on variables

8 years agoEliminate the separate matrix stack in Renderer
Mikko Rasa [Sat, 19 Nov 2016 14:20:06 +0000 (16:20 +0200)]
Eliminate the separate matrix stack in Renderer

Instead incorporate the modelview matrix into the main render state.

8 years agoAllow redeclarations to override the type of a variable
Mikko Rasa [Fri, 18 Nov 2016 22:01:40 +0000 (00:01 +0200)]
Allow redeclarations to override the type of a variable

This can be used to e.g. change the sampler type of the diffuse map.  At
the moment the appropriate sampling function also needs to be overridden
since texcoord dimensions are not handled automatically.

8 years agoMove postprocessor shaders to the builtin shaderlib
Mikko Rasa [Fri, 18 Nov 2016 21:45:00 +0000 (23:45 +0200)]
Move postprocessor shaders to the builtin shaderlib

8 years agoGenerate the entire shaderlib into a single file
Mikko Rasa [Fri, 18 Nov 2016 21:16:54 +0000 (23:16 +0200)]
Generate the entire shaderlib into a single file

Generating lots of small files seemed rather silly, and I found no good
way to automatically generate the builtin init code.

8 years agoAutomatically backport shaders to earlier GLSL versions if necessary
Mikko Rasa [Fri, 18 Nov 2016 17:40:16 +0000 (19:40 +0200)]
Automatically backport shaders to earlier GLSL versions if necessary

Fragment shader output replacement is a bit crude and will just replace
any output with gl_FragColor.  It will be made better later.

8 years agoRefactor block modification operations into an intermediate base class
Mikko Rasa [Fri, 18 Nov 2016 17:38:10 +0000 (19:38 +0200)]
Refactor block modification operations into an intermediate base class

8 years agoAdd a builtin module for standard shaders
Mikko Rasa [Tue, 15 Nov 2016 17:09:50 +0000 (19:09 +0200)]
Add a builtin module for standard shaders

It doesn't support multiple lights as generating the necessary array
interfaces through a geometry shader turned out to be rather non-trivial.
I plan to add deferred rendering modules with multi-light support later.

8 years agoRemove unused functions from the shader source
Mikko Rasa [Mon, 14 Nov 2016 15:46:35 +0000 (17:46 +0200)]
Remove unused functions from the shader source

8 years agoRemove conditionals and loops that can be determined to never run
Mikko Rasa [Mon, 14 Nov 2016 13:33:45 +0000 (15:33 +0200)]
Remove conditionals and loops that can be determined to never run

This is the other major step required for standard shader generation.
Currently the constant condition eliminator is pretty conservative and
will only consider the initialization values of variables.  Globals are
only considered if they are declared const.

8 years agoImplement an import system
Mikko Rasa [Mon, 14 Nov 2016 12:22:02 +0000 (14:22 +0200)]
Implement an import system

This is the first of two major steps required to replicate the core
functionality of the old ProgramBuilder system, namely generating
standard shaders.  The other is conditionally including pieces of code,
which will be added soon.

8 years agoFurther reduce overhead of applying ProgramCompiler visitors
Mikko Rasa [Mon, 14 Nov 2016 11:41:46 +0000 (13:41 +0200)]
Further reduce overhead of applying ProgramCompiler visitors

8 years agoCheck if blocks need braces at formatting time
Mikko Rasa [Mon, 14 Nov 2016 11:39:50 +0000 (13:39 +0200)]
Check if blocks need braces at formatting time

8 years agoParse true and false as literals rather than identifiers
Mikko Rasa [Mon, 14 Nov 2016 09:52:14 +0000 (11:52 +0200)]
Parse true and false as literals rather than identifiers

8 years agoFix formatting issues with else ifs
Mikko Rasa [Sun, 13 Nov 2016 22:35:55 +0000 (00:35 +0200)]
Fix formatting issues with else ifs

8 years agoOverhaul assignment tracking to work properly with conditionals
Mikko Rasa [Sun, 13 Nov 2016 21:39:45 +0000 (23:39 +0200)]
Overhaul assignment tracking to work properly with conditionals

8 years agoGenerate a passthrough for gl_Position in geometry shader
Mikko Rasa [Sat, 12 Nov 2016 18:09:16 +0000 (20:09 +0200)]
Generate a passthrough for gl_Position in geometry shader

8 years agoAdd a module for builtin interface variables
Mikko Rasa [Sat, 12 Nov 2016 18:08:24 +0000 (20:08 +0200)]
Add a module for builtin interface variables

Required to make unused assignment removal work for gl_Position.

8 years agoBetter handling of array flag for generated interfaces
Mikko Rasa [Sat, 12 Nov 2016 16:41:32 +0000 (18:41 +0200)]
Better handling of array flag for generated interfaces

8 years agoMove unused aggregate detection to UnusedVariableDetector
Mikko Rasa [Sat, 12 Nov 2016 16:40:29 +0000 (18:40 +0200)]
Move unused aggregate detection to UnusedVariableDetector

It isn't really NodeRemover's job.

8 years agoFix unused variable decetion for self-referenging assignments
Mikko Rasa [Sat, 12 Nov 2016 16:09:32 +0000 (18:09 +0200)]
Fix unused variable decetion for self-referenging assignments

Extend it to initialization expressions as well.

8 years agoIntegrate ProgramCompiler with Program and Resources
Mikko Rasa [Sat, 12 Nov 2016 00:25:49 +0000 (02:25 +0200)]
Integrate ProgramCompiler with Program and Resources

8 years agoReturn back to first stage after some optimization happens
Mikko Rasa [Sat, 12 Nov 2016 00:04:14 +0000 (02:04 +0200)]
Return back to first stage after some optimization happens

Unused variable removal can propagate towards earlier stages so those
have to be checked again.

8 years agoProcess existing inputs in passthrough
Mikko Rasa [Sat, 12 Nov 2016 00:00:09 +0000 (02:00 +0200)]
Process existing inputs in passthrough

Vertex shader inputs are not linked to any outputs so they weren't being
recognized for passthrough.  Also, some inputs might have already been
declared either explicitly or implicitly so those declarations should be
preferred over creating new ones.

8 years agoRecognize superceded assignments even for out variables
Mikko Rasa [Fri, 11 Nov 2016 23:19:00 +0000 (01:19 +0200)]
Recognize superceded assignments even for out variables

8 years agoAssorted refactoring and fixes
Mikko Rasa [Fri, 11 Nov 2016 17:02:06 +0000 (19:02 +0200)]
Assorted refactoring and fixes

8 years agoRefactor module and stage management
Mikko Rasa [Fri, 11 Nov 2016 16:39:57 +0000 (18:39 +0200)]
Refactor module and stage management

Originally I envisioned that ProgramParser would handle imports, but it's
non-trivial to make re-entrant.  The parser will now only hold one module
at a time and ProgramCompiler will handle combining them.

8 years agoRename ProgramSyntax::Context to Stage
Mikko Rasa [Fri, 11 Nov 2016 13:59:38 +0000 (15:59 +0200)]
Rename ProgramSyntax::Context to Stage

8 years agoExtend unused variable analysis to assignments and across interfaces
Mikko Rasa [Fri, 11 Nov 2016 11:37:18 +0000 (13:37 +0200)]
Extend unused variable analysis to assignments and across interfaces

Assignments are removed if there are no further references to the
assigned variable, except if it's a linked out variable.

8 years agoStreamline interface declarations
Mikko Rasa [Fri, 11 Nov 2016 09:05:15 +0000 (11:05 +0200)]
Streamline interface declarations

Out variables can now be declared inside functions and will be exported
to global scope.  In variables don't need to be declared at all; they are
pulled in from the previous stage.  There's a new passthrough statement
to copy all inputs to outputs.

8 years agoRemove unused variable and struct declarations from the syntax tree
Mikko Rasa [Wed, 9 Nov 2016 13:59:17 +0000 (15:59 +0200)]
Remove unused variable and struct declarations from the syntax tree

8 years agoInject the global context to the syntax tree
Mikko Rasa [Wed, 9 Nov 2016 13:35:25 +0000 (15:35 +0200)]
Inject the global context to the syntax tree

... rather than concatenating its text with the other contexts.

8 years agoImplement an actual expression parser
Mikko Rasa [Tue, 8 Nov 2016 20:36:07 +0000 (22:36 +0200)]
Implement an actual expression parser

Doing pretty much anything interesting with the syntax tree requires
having access to expressions.

8 years agoBegin implementing a new shader program generator system
Mikko Rasa [Mon, 7 Nov 2016 21:10:51 +0000 (23:10 +0200)]
Begin implementing a new shader program generator system

ProgramBuilder is good enough when working within its standard features,
but it's difficult to expand.  Custom variables are overly sensitive to
declration order.  Adding loops or conditionals (other than the operator
flavor) requires using an additional shader.  It's not possible to modify
a variable's expression without replicating it in its entirety.

All of the internal processing with coordinate spaces, interfaces and
indices can also be difficult to understand.  Not to mention the reverse
processing order which starts from the goal variables and works backwards
to figure out how they can be computed.

The new ProgramCompiler system, as its name implies, works more like a
compiler.  It's designed to take GLSL as input, apply transformations to
it and produce different GLSL as output.  Storing the progrem as an
abstract syntax tree allows much more comprehensive processing than the
old system which barely understood what an identifier is.

At the moment it doesn't do much yet.  The only transformation is to
split a single source file into vertex, geometry and fragment parts and
add a common section at the beginning of each of them.  More will be
added soon.

8 years agoRestructure the extension detection code
Mikko Rasa [Sun, 6 Nov 2016 10:46:44 +0000 (12:46 +0200)]
Restructure the extension detection code

Extension disabling is now more forceful and will prevent the use of the
relevant functionality even if it was promoted to core.

8 years agoAdd a less-than operator to Version
Mikko Rasa [Sun, 6 Nov 2016 09:34:00 +0000 (11:34 +0200)]
Add a less-than operator to Version

8 years agoDetect deprecation versions for extensions
Mikko Rasa [Sat, 5 Nov 2016 23:37:55 +0000 (01:37 +0200)]
Detect deprecation versions for extensions

If the core profile is in use, deprecated extensions will be made
unavailable unless the driver explicitly advertises them.  In particular,
MSP_legacy_features is made unavailable so code that tries to access
legacy features with a core profile context will throw an exception.
Additionally no enable/disable calls will be generated for textures, as
they are only used for legacy texture units.

8 years agoAdd a function to determine the active GL profile
Mikko Rasa [Sat, 5 Nov 2016 23:37:11 +0000 (01:37 +0200)]
Add a function to determine the active GL profile

8 years agoBe smarter when detecting the core version of extensions
Mikko Rasa [Sat, 5 Nov 2016 23:28:58 +0000 (01:28 +0200)]
Be smarter when detecting the core version of extensions

8 years agoUse an orthographic camera for rendering the shadow map
Mikko Rasa [Sat, 5 Nov 2016 22:20:40 +0000 (00:20 +0200)]
Use an orthographic camera for rendering the shadow map

8 years agoProperly compute frustum culling for orthographic cameras
Mikko Rasa [Sat, 5 Nov 2016 22:10:59 +0000 (00:10 +0200)]
Properly compute frustum culling for orthographic cameras

It's still incorrect for skewed frustums but I'll fix that later.

8 years agoAlso convert RenderBuffer formats to sized variants if possible
Mikko Rasa [Sat, 5 Nov 2016 15:12:20 +0000 (17:12 +0200)]
Also convert RenderBuffer formats to sized variants if possible

8 years agoPrefer RG pixelformats over LUMINANCE
Mikko Rasa [Thu, 3 Nov 2016 11:12:06 +0000 (13:12 +0200)]
Prefer RG pixelformats over LUMINANCE

LUMINANCE formats were deprecated in OpenGL 3.0.  ARB_texture_swizzle
was not promoted to core until 3.3, so it's possible this won't work on
some transition period hardware.

SLUMINANCE formats are marked as deprecated in mspgl since it's not
possible to properly emulate them through swizzling.

8 years agoExpand the PixelFormat conversion API
Mikko Rasa [Thu, 3 Nov 2016 10:50:35 +0000 (12:50 +0200)]
Expand the PixelFormat conversion API

Get_sized_pixelformat now takes an explicit size parameter.  The decision
between 16-bit and 32-bit depth component formats has been moved to
Texture::set_internal_format.

Get_unsized_pixelformat was added as an intermediate step for
get_base_pixelformat.  It preserves sRGB information.

8 years agoFix Texture2D::get_data_size to use get_pixel_size
Mikko Rasa [Thu, 3 Nov 2016 08:29:08 +0000 (10:29 +0200)]
Fix Texture2D::get_data_size to use get_pixel_size

8 years agoHave get_component_size return zero for unsized formats
Mikko Rasa [Thu, 3 Nov 2016 08:27:50 +0000 (10:27 +0200)]
Have get_component_size return zero for unsized formats

Get_pixel_size still assumes a component size of at least one byte.

8 years agoMove internal format management to the Texture base class
Mikko Rasa [Thu, 3 Nov 2016 08:08:29 +0000 (10:08 +0200)]
Move internal format management to the Texture base class

8 years agoUse indexed string query to get extensions on OpenGL 3.0 and above
Mikko Rasa [Wed, 2 Nov 2016 22:23:08 +0000 (00:23 +0200)]
Use indexed string query to get extensions on OpenGL 3.0 and above

8 years agoAdd the ARB_texture_rg extension
Mikko Rasa [Wed, 2 Nov 2016 20:57:10 +0000 (22:57 +0200)]
Add the ARB_texture_rg extension

8 years agoAdd properties to export materials as texture array layers
Mikko Rasa [Sat, 29 Oct 2016 17:02:10 +0000 (20:02 +0300)]
Add properties to export materials as texture array layers

8 years agoUse ARB_direct_state_access to avoid some bind calls
Mikko Rasa [Fri, 28 Oct 2016 17:03:54 +0000 (20:03 +0300)]
Use ARB_direct_state_access to avoid some bind calls

8 years agoRefactor TextureCube face information functions with lookup tables
Mikko Rasa [Fri, 28 Oct 2016 16:34:10 +0000 (19:34 +0300)]
Refactor TextureCube face information functions with lookup tables

8 years agoRefactor Framebuffer::update_attachment for less indentation
Mikko Rasa [Fri, 28 Oct 2016 15:54:39 +0000 (18:54 +0300)]
Refactor Framebuffer::update_attachment for less indentation

8 years agoUse the correct form of glTexParameter to set maximum anisotropy
Mikko Rasa [Fri, 28 Oct 2016 12:31:47 +0000 (15:31 +0300)]
Use the correct form of glTexParameter to set maximum anisotropy

8 years agoRearrange texture bind calls to keep them closer to where they're needed
Mikko Rasa [Fri, 28 Oct 2016 12:21:03 +0000 (15:21 +0300)]
Rearrange texture bind calls to keep them closer to where they're needed

8 years agoPrefer explicit mipmap generation with glGenerateMipmap
Mikko Rasa [Fri, 28 Oct 2016 11:55:23 +0000 (14:55 +0300)]
Prefer explicit mipmap generation with glGenerateMipmap

Implicit generation with the texture parameter was deprecated in
OpenGL 3.0 and removed in OpenGL 3.2.

8 years agoUse ARB_texture_storage for defining texture storage
Mikko Rasa [Thu, 27 Oct 2016 22:52:13 +0000 (01:52 +0300)]
Use ARB_texture_storage for defining texture storage

8 years agoAdd some utility functions for textures
Mikko Rasa [Thu, 27 Oct 2016 22:49:59 +0000 (01:49 +0300)]
Add some utility functions for textures

8 years agoImplement sub_image for TextureCube also
Mikko Rasa [Thu, 27 Oct 2016 22:38:34 +0000 (01:38 +0300)]
Implement sub_image for TextureCube also

I thought it was already implemented but in turned out there was only a
declaration.

8 years agoPrefer sized internal formats when possible
Mikko Rasa [Thu, 27 Oct 2016 22:13:02 +0000 (01:13 +0300)]
Prefer sized internal formats when possible

8 years agoPull in sized depth component formats from ARB_depth_texture
Mikko Rasa [Thu, 27 Oct 2016 22:02:40 +0000 (01:02 +0300)]
Pull in sized depth component formats from ARB_depth_texture

8 years agoImplement 2D array textures
Mikko Rasa [Thu, 27 Oct 2016 08:13:39 +0000 (11:13 +0300)]
Implement 2D array textures

8 years agoCosmetic tweaks
Mikko Rasa [Thu, 27 Oct 2016 08:07:57 +0000 (11:07 +0300)]
Cosmetic tweaks

8 years agoRemove the obsolete storage statement with border
Mikko Rasa [Thu, 27 Oct 2016 08:01:19 +0000 (11:01 +0300)]
Remove the obsolete storage statement with border

8 years agoAdd a datafile statement to use an external image for a texture
Mikko Rasa [Thu, 27 Oct 2016 07:59:34 +0000 (10:59 +0300)]
Add a datafile statement to use an external image for a texture

It can be useful for non-2D textures which can't be loaded directly from
an image file by the resource collection.

8 years agoImplement sub_image for Texture1D
Mikko Rasa [Thu, 27 Oct 2016 07:58:35 +0000 (10:58 +0300)]
Implement sub_image for Texture1D

8 years agoImplement loading functionality for texture classes that were missing it
Mikko Rasa [Thu, 27 Oct 2016 07:48:32 +0000 (10:48 +0300)]
Implement loading functionality for texture classes that were missing it

8 years agoMove srgb handling to storage_pixelformat_from_graphics
Mikko Rasa [Thu, 27 Oct 2016 07:06:16 +0000 (10:06 +0300)]
Move srgb handling to storage_pixelformat_from_graphics

8 years agoUse the core version of primitive restart if possible
Mikko Rasa [Wed, 26 Oct 2016 19:13:38 +0000 (22:13 +0300)]
Use the core version of primitive restart if possible

8 years agoPick the correct source for an extension function if there's multiple
Mikko Rasa [Wed, 26 Oct 2016 19:02:23 +0000 (22:02 +0300)]
Pick the correct source for an extension function if there's multiple

8 years agoUse correct form of GET_PROC_ADDRESS for unpromoted functions
Mikko Rasa [Wed, 26 Oct 2016 18:48:49 +0000 (21:48 +0300)]
Use correct form of GET_PROC_ADDRESS for unpromoted functions

None compares as less than any list.

8 years agoUse ARB_geometry_shader4 rather than the EXT version
Mikko Rasa [Wed, 26 Oct 2016 18:42:38 +0000 (21:42 +0300)]
Use ARB_geometry_shader4 rather than the EXT version

The ARB version is what actually got promoted.

8 years agoBe smarter about detecting backport extensions
Mikko Rasa [Wed, 26 Oct 2016 18:33:21 +0000 (21:33 +0300)]
Be smarter about detecting backport extensions

Sometimes a more recent and completely unrelated extension reuses some
tokens with their core names, causing them to seem like backport
extensions to the script.

8 years agoGive the LIGHTING and CLIPPING flags a LEGACY prefix
Mikko Rasa [Wed, 26 Oct 2016 17:30:15 +0000 (20:30 +0300)]
Give the LIGHTING and CLIPPING flags a LEGACY prefix

8 years agoTrack whether implicit shader data needs to be re-applied
Mikko Rasa [Wed, 26 Oct 2016 17:29:54 +0000 (20:29 +0300)]
Track whether implicit shader data needs to be re-applied

8 years agoAlways print shader and program info logs in debug mode
Mikko Rasa [Wed, 26 Oct 2016 15:16:34 +0000 (18:16 +0300)]
Always print shader and program info logs in debug mode

They may contain useful warnings even if the code was accepted.

8 years agoAdd uniform integer vectors of 2, 3 and 4 elements
Mikko Rasa [Wed, 26 Oct 2016 15:11:06 +0000 (18:11 +0300)]
Add uniform integer vectors of 2, 3 and 4 elements

8 years agoFix Camera::unproject
Mikko Rasa [Mon, 24 Oct 2016 20:55:58 +0000 (23:55 +0300)]
Fix Camera::unproject

It was lacking un-perspective division.  There's also a Vector3 overload
now.

8 years agoCheck glGetString result for being null
Mikko Rasa [Sun, 23 Oct 2016 12:35:24 +0000 (15:35 +0300)]
Check glGetString result for being null

8 years agoAdd a geometry flag to ProgramBuilder
Mikko Rasa [Sun, 16 Oct 2016 11:30:51 +0000 (14:30 +0300)]
Add a geometry flag to ProgramBuilder

It does not generate a geometry shader yet but allows one to be manually
inserted into the program.

8 years agoAdd basic support for geometry shaders
Mikko Rasa [Sun, 16 Oct 2016 08:16:38 +0000 (11:16 +0300)]
Add basic support for geometry shaders

8 years agoPerform culling in eye space and account for Renderer's matrix
Mikko Rasa [Fri, 7 Oct 2016 12:38:09 +0000 (15:38 +0300)]
Perform culling in eye space and account for Renderer's matrix

This allows container renderables to apply intermediate transforms to the
Renderer.  Sometimes it may be inconvenient to propagate every matrix
change down through the hierarchy.

8 years agoAdd a convenience method to get the aspect ratio of View
Mikko Rasa [Fri, 7 Oct 2016 12:37:39 +0000 (15:37 +0300)]
Add a convenience method to get the aspect ratio of View

8 years agoInherit View from sigc::trackable
Mikko Rasa [Fri, 7 Oct 2016 12:37:11 +0000 (15:37 +0300)]
Inherit View from sigc::trackable

It connects to the resize signal of Window.

8 years agoAdd new matrix manipulation functions to VertexBuilder
Mikko Rasa [Tue, 4 Oct 2016 08:34:44 +0000 (11:34 +0300)]
Add new matrix manipulation functions to VertexBuilder

For symmetry with Renderer.

8 years agoAdd some accessors to View
Mikko Rasa [Fri, 16 Sep 2016 23:15:20 +0000 (02:15 +0300)]
Add some accessors to View

8 years agoFix some #defines for Windows
Mikko Rasa [Fri, 16 Sep 2016 22:36:54 +0000 (01:36 +0300)]
Fix some #defines for Windows