Skip to main content
gamedev.net
🔒 Locked

directx wrapper tutorial???????

Started by johnnyBravo 2 replies 300+ views
Original Post
johnnyBravo
johnnyBravo
Hey i want to make a directx wrapper for my main program so the codes less messier. Anyway how would i go about making a wrapper? ANyone know of any tutorials etc?
Cipher3D
Cipher3D
it is extremely easy. just create source files with your own functions. for example,

void drawSprite(int x,int y,int sprite) <- this is your func
{

device->drawquad(...whatever...);

}

or

bool InitDevice()
{

device->create();

return true;
}

etcetera.

you still need to have knowledge of directx though...
I eat heart attacks
johnnyBravo
johnnyBravo
well i tried that in a dll, but when i ran it , it had an access violation

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.