erebus

diff liberebus/src/scene.cc @ 23:56d504cc555a

- debugging scale factor for render size - fixed un-normalized normals after transforms in the SceneNode
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 29 May 2014 07:47:52 +0300
parents 11cdaa510201
children 4a0a288ffb27
line diff
     1.1 --- a/liberebus/src/scene.cc	Thu May 29 03:35:04 2014 +0300
     1.2 +++ b/liberebus/src/scene.cc	Thu May 29 07:47:52 2014 +0300
     1.3 @@ -125,6 +125,16 @@
     1.4  static char *strip_wspace(char *str)
     1.5  {
     1.6  	while(*str && isspace(*str)) str++;
     1.7 +
     1.8 +	char *comment = strchr(str, '#');
     1.9 +	if(comment) *comment = 0;
    1.10 +
    1.11 +	if(str) {
    1.12 +		char *end = str + strlen(str) - 1;
    1.13 +		while(end > str && isspace(*end)) end--;
    1.14 +		end[1] = 0;
    1.15 +	}
    1.16 +
    1.17  	return str;
    1.18  }
    1.19