Jump to content

  • Log In with Google      Sign In   
  • Create Account

Porting OpenGL/Glut App. from Linux to Win32


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
5 replies to this topic

#1 flood   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 September 2001 - 02:01 AM

Hi all, I''m trying to port a OpenGL/GLUT Application from Linux to WIN32. Everything works fine except one thing: - I''m using the funktion
quote:
glPixelstorei(...)
.As a parameter I''m using the GL-Constant
quote:
GL_UNPACK_IMAGE_HEIGHT
. If I compile the App. under WIN32,an error message occurs which says that the above constant isn''t declared. -Yes I''ve linked all libraries -Yes I''ve the latest version of OpenGL/GLUT Does anybody have an idea about this error message? Thanks for your help and keep on coding cheers, <__---=== flood ===---__>

#2 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 07 September 2001 - 12:13 PM

i dont think thats an opengl command/variable perhaps whoever wrote the program made there own variable and called it GL_UNPACK_IMAGE_HEIGHT (not the smartest thing to do )

#3 Null and Void   Moderators   -  Reputation: 1087

Like
Likes
Like

Posted 07 September 2001 - 12:18 PM

It may be that that constant is part of OpenGL 1.2, and the Win32 OpenGL header''s only go up to OpenGL 1.1... You can try stealing the value from your Linux headers and putting in your own project''s headers.

[Resist Windows XP''s Invasive Production Activation Technology!]

#4 smitty1276   Members   -  Reputation: 560

Like
Likes
Like

Posted 07 September 2001 - 09:54 PM

I think the only valid constants for glPixelStore() are:

GL_PACK_SWAP_BYTES
GL_PACK_SWAP_BYTES
GL_PACK_ROW_LENGTH
GL_PACK_SKIP_ROWS
GL_PACK_SKIP_PIXELS
GL_PACK_ALIGNMENT
GL_UNPACK_SWAP_BYTES
GL_UNPACK_LSB_FIRST
GL_UNPACK_ROW_LENGTH
GL_UNPACK_SKIP_ROWS
GL_UNPACK_SKIP_PIXELS
GL_UNPACK_ALIGNMENT

#5 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 07 September 2001 - 10:41 PM

quote:
Original post by Null and Void
It may be that that constant is part of OpenGL 1.2, and the Win32 OpenGL header''s only go up to OpenGL 1.1... You can try stealing the value from your Linux headers and putting in your own project''s headers.

[Resist Windows XP''s Invasive Production Activation Technology!]


ahh true, my bad, its part of 3d textures. included "gl_ext.h" and the problem should go away

#6 flood   Members   -  Reputation: 122

Like
Likes
Like

Posted 10 September 2001 - 08:51 PM

Thanks for your postings,

I''ll give it a try

<__---=== flood ===---__>




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS