Search found 54 matches

by Zer0XoL
Sun Apr 15, 2012 12:15 pm
Forum: Programming Discussion
Topic: Scripting Language development
Replies: 120
Views: 36003

Re: Development video on youtube

Cool, looking forward to a video. :)
by Zer0XoL
Fri Mar 09, 2012 1:30 am
Forum: Programming Discussion
Topic: Basic Programming Question
Replies: 11
Views: 4072

Re: Basic Programming Question

Do you have a website url handy where I might find a list of the "rules of thumb" or do I just search "rules of thumb" and C++? I might be alittle late, but this site is good: http://geosoft.no/development/cppstyle.html you need not follow it entierly, but it has great arguments...
by Zer0XoL
Mon Sep 26, 2011 10:28 am
Forum: Programming Discussion
Topic: Clash of the IDE's
Replies: 61
Views: 14225

Re: Clash of the IDE's

Where is visual c++ express 2008? :(
by Zer0XoL
Sat Sep 24, 2011 8:22 pm
Forum: Programming Discussion
Topic: Set OpenGL color key??
Replies: 15
Views: 4117

Re: Set OpenGL color key??

I know this is more than 3+ months old.. but I have some code that can benefit anyone who comes by. Converting BMP (RGB/BGR) into (RGBA/BGRA) using SDL_SetColorKey and the standard OpenGL stuff. (TIP: if you use photoshop or anything else.. make sure to turn off the tools' anti-aliasing!!! fill/mag...
by Zer0XoL
Thu Apr 28, 2011 4:07 pm
Forum: Programming Discussion
Topic: OBJ Loader
Replies: 11
Views: 2156

Re: OBJ Loader

by Zer0XoL
Mon Dec 13, 2010 2:32 pm
Forum: Programming Discussion
Topic: OpenGL Texture to SDL_Surface
Replies: 24
Views: 2794

Re: OpenGL Texture to SDL_Surface

Ginto8 wrote:
Zer0XoL wrote:i found a function here that works awesomely :)

in "krumm"s post:
http://www.gamedev.net/community/forums ... _id=184477

might be of interest :)
that's the other way around :roll: :mrgreen:
oh :P, well i hope someone of interest sees it :)
by Zer0XoL
Mon Dec 13, 2010 1:12 pm
Forum: Programming Discussion
Topic: OpenGL Texture to SDL_Surface
Replies: 24
Views: 2794

Re: OpenGL Texture to SDL_Surface

i found a function here that works awesomely :)

in "krumm"s post:
http://www.gamedev.net/community/forums ... _id=184477

might be of interest :)
by Zer0XoL
Sat Dec 04, 2010 6:11 pm
Forum: Programming Discussion
Topic: Problems Encountered While Developing a Game Engine
Replies: 27
Views: 3243

Re: Game Engine Troubles

I can live with the user having to return a value in main(), the main problem is that I link SDLmain.lib in my engine and everything compiles/links fine, but when I test out my engine, I get this error: LINK : fatal error LNK1561: entry point must be defined This is my main.cpp: #include <cstdio> #...
by Zer0XoL
Sat Jul 10, 2010 4:25 pm
Forum: Programming Discussion
Topic: Lua Question
Replies: 9
Views: 1602

Re: Lua Question

Hello fellow game developers. :) I'm working on this engine which is pretty good so far and it's going pretty well and I am trying to implement Lua. The problem is that I'm using Code::Blocks and I have linked the includes and libs and everything but I keep getting "undefined reference" e...
by Zer0XoL
Wed Jul 07, 2010 5:40 am
Forum: Programming Discussion
Topic: Help: Overloading a function from C++ in Lua using LuaBind
Replies: 7
Views: 1368

Re: Help: Overloading a function from C++ in Lua using LuaBind

Actually, my logic here is invaild, i make objects instead of types.
Therefore doing it this way makes it impossible for 2 players to have the same item.
What i really want is to make a new type upon the one in C++, i dont know how Lua handles class inherit, so ill have o check it out.
by Zer0XoL
Sun Jul 04, 2010 4:49 pm
Forum: Programming Discussion
Topic: How does video game networking work?
Replies: 16
Views: 1795

Re: How does video game networking work?

Just a little kind of offtopic note, ive managed to use placement new on my own structs and send them over the network, i dont know if this is a new usage, but it works and is simple, idk if its fast or secure, it stores the new struct in a char array buffer and then it sends it and then it recievs...
by Zer0XoL
Sat Jul 03, 2010 3:59 pm
Forum: Programming Discussion
Topic: How does video game networking work?
Replies: 16
Views: 1795

Re: How does video game networking work?

Just a little kind of offtopic note, ive managed to use placement new on my own structs and send them over the network, i dont know if this is a new usage, but it works and is simple, idk if its fast or secure, it stores the new struct in a char array buffer and then it sends it and then it recievs ...
by Zer0XoL
Fri Jul 02, 2010 6:46 pm
Forum: Programming Discussion
Topic: Help: Overloading a function from C++ in Lua using LuaBind
Replies: 7
Views: 1368

Re: Help: Overloading a function from C++ in Lua using LuaBind

well, thanks but this wasnt really what i ment, i want to overload OR REPLACE the function in C++ with a lua function, but the lua function should still be a member of the C++ class or struct so it can acces its private members. I have even tried using a function pointer and then redefine it in lua...
by Zer0XoL
Thu Jul 01, 2010 3:34 pm
Forum: Programming Discussion
Topic: Help: Overloading a function from C++ in Lua using LuaBind
Replies: 7
Views: 1368

Re: Help: Overloading a function from C++ in Lua using LuaBind

I looked at it, but honestly luabind looks way more complicated than tolua++. It's so much less of a hassle to just parse a cleaned header and tinker with the output as needed. :| Edit: Okay maybe LuaBind isn't all that bad. For Use( int ) and Use( double ) try: luabind::module(LuaState) [ .def(&qu...
by Zer0XoL
Wed Jun 30, 2010 3:09 pm
Forum: Programming Discussion
Topic: Help: Overloading a function from C++ in Lua using LuaBind
Replies: 7
Views: 1368

Re: Help: Overloading a function from C++ in Lua using LuaBind

xiphirx wrote:You may want to turn the struct into a class and make use virtual. That's my guess.

Im a dumbass, disregard this message.
well thanks for at least replying :P