pera wrote:
> first: thanks for your time =)
> I'm doing this because I need space (I'm making a 4kb intro/
> demoscene).
Then GLUT is the very wrong path. To save last bit of space I'd
even recommend not to link the opengl32.dll (assuming you want
to run it under Windows) directly, but instead use LoadLibarary
and GetProcAddress with the _ordinal numbers_. See
<http://msdn.microsoft.com/en-us/library/ms683212(VS.85).aspx>
this will save the space, that would be used for the procedur
names otherwise.
> int main(void){
> int argc=1;
> char **argv;
argv will point anywhere, and if using main() it will probably
pointing into initialized memory. Use
char *argv[] = {
"mydemo",
NULL
};
instead.
> This works great, but if I set my own entry point "void
> _start(void)" instead of main I get the segmentation fault :/
>
> why?
Your argv points anywhere.
Wolfgang Draxinger
--
E-Mail address works, Jabber: hexarith@[EMAIL PROTECTED]
ICQ: 134682867


|