Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BitMapFileHeader data Structure on Mac

203 views
Skip to first unread message

Dan

unread,
Sep 26, 2002, 3:36:27 PM9/26/02
to
I'm trying to port a opengl Program written, on a PC, in C++ through
Codewarrior to a Mac. The complier on the Mac can't seem to find the
BITMAPFILEHEADER structure. This didn't seem to be a problem on the
PC. I was wondering if there is a special .h file that needs to be
included on a Mac to make this data structure work.

thanks
Dan

fungus

unread,
Sep 26, 2002, 3:52:49 PM9/26/02
to
Dan wrote:
> I'm trying to port a opengl Program written, on a PC, in C++ through
> Codewarrior to a Mac. The complier on the Mac can't seem to find the
> BITMAPFILEHEADER structure. This didn't seem to be a problem on the
> PC.


That's not OpenGL, that's Windows.

> I was wondering if there is a special .h file that needs to be
> included on a Mac to make this data structure work.
>

Umm, yes, "windows.h" but I doubt you'll get it for
Macintosh.


At the risk of being smitten by a thunderbolt from
above, here's the definition:

typedef struct tagBITMAPFILEHEADER { // bmfh
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BITMAPFILEHEADER;


--
<\___/>
/ O O \
\_____/ FTB.

RaGeZ

unread,
Sep 27, 2002, 12:53:47 AM9/27/02
to
why don't u define it by u own ?


Philip Mainwaring

unread,
Sep 27, 2002, 11:14:22 PM9/27/02
to
How would you define that? Anybody have any ideas? I'm trying to write a bmp
texture loader for a multiple-operating system game, and I haven't figured
this out yet.

Philip Mainwaring


0 new messages