From: RoGeR <le...@sp...> - 2000-10-06 14:19:57
|
I am new to the list and I am also trying to find a C++ wrapper for = DirectX that works with DevC++ and the only thing you'll have to do to = use it is include header files and use ready commands... E.g. =20 include <DXWRAP_draw.h> // all drawing you can think of... include <DXWRAP_sound.h> // midi, wav, stream etc... include <DXWRAP_input.h> // mouse, joystick, keyboard... include <DXWRAP_3d.h> // 3D commands ( when I say commands I mean = routines that wrap DirectX ) ... set_video_mode ( 320, 240, 8 ); IMAGE *img =3D new IMAGE ( 320, 240, VIDEO ); set_screen ( img ); circle ( img, rnd(90), rnd(120), get_color = (255,255,0) ); ... // Animation class can be created using the wraper ANIMATION *anm =3D new ANIMATION ( 12 ); ANIMATION.frame[0] =3D load_image ( "heroWalk0.pcx", SYSTEM ); ANIMATION.frame[1] =3D load_image ( "heroWalk1.pcx", SYSTEM ); ... draw_surface ( IMAGE *srf, IMAGE *img, int x, int y, double angle, = double scl_w, double scl_h, FLIP_TYPE flip, unsigned char transparency = ); ... No, I don't want the wraper to support sprites and stuff (e.g. animation = class and sprite class). I want the foundamental classes & commands that = wrap DirectX - e.g. an IMAGE class or a SURFACE class better with all = sorts of DIRECTX drawing commands. A SAMPLE class or WAVE class or SOUND = class. TIMER classes, DRAWING commands ( drawing primitives, ddsurfaces = with full manipulation capabilities like the draw_surface example I've = set above ), PALETTE classes, commands, DINPUT commands and class ( = joystick class e.g. INPUTER joystick =3D GET_JOYSTICK[1]; if ( = joystick.button[x] || joystick.angle =3D=3D 1.57 ) { ... } etc... I = think you get the point of what I really seek. Thanks in advance for any help - I hope there is such a simple wraper - = I ahte the ones that use *.lib etc... |