FLTK logo

Re: Regame question

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Regame question imm Mar 17, 2008  
 
On 17 Mar 2008, at 20:38, Yuri D'Elia wrote:
>> Mostly, I was just fiddling with the Makefile to get it to build  
>> (and I
>> had to alter the #ifdef's to allow it to use the gettimeofday()  
>> stub -
>> my mingw doesn't provide one...)
>
> The win32 build that is currently online was generated via a mingw32;
> crosscompiled on linux.

OK, mine was Msys/mingw on XP.

> I'm using the gcc 4.2.1-sjli (the latest testing distribution). At  
> some
> point they included the gettimeofday stub in mingw itself. A real time
> saver :)

I'm still using the stable mingw - 3.4.2 or something, I think?  
Anyway, no gettimeofday...

>
>> So - I take it that it does build and run OK on win32 with other
>> toolchains? It is entirely likely that I have messed something up  
>> in my
>> Makefile that is breaking things.
>
> Maybe I'm to blame. I'm using the GL_TEXTURE_RECTANGLE_ARB  
> extension in
> the code, without any form of fallback. If you don't have hardware
> support for non-power-of-two textures it won't draw anything.
> This is easily fixed. You should, at least, be able to see the text.

I didn't get a chance to really look, but adding a glGetString() call  
for GL_EXTENSIONS didn't seem to show either GL_TEXTURE_RECTANGLE_ARB  
or GL_TEXTURE_RECTANGLE_EXT support on my test machine. I had  
imagined that GL_TEXTURE_RECTANGLE_EXT might show up... The png's, of  
course, aren't 2^n sizes... Everything just comes up as white on a  
white background...

Also, no text is appearing either, for reasons I haven't had a chance  
to look into.

> Try adding:
>
> glMatrixMode(GL_PROJECTION);
> glLoadIdentity();
> glMatrixMode(GL_MODELVIEW);
>
> before ortho(). Maybe it's just that.

I'll give that a shot tomorrow, if I get a chance.

Cheers,
-- 
Ian
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.