Thread: DxEngine source code

  1. #1
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072

    DxEngine source code

    Speedy5 told me in a PM that he wanted to take a look at the source code of my 2D engine.
    That was OK with me, because I was going to release the source later when my game was finished, but I found that I was unable to attach files to PMs.

    So therefore I created this thread, prehaps others will find the code useful.

    However I must warn you: Most of the source code was written three years ago and is quite messy. The only thing I've done in the recent days is the alpha blending and rotation code.

    It supports:
    • 2D graphics
    • Hardware alpha blending
    • Hardware rotation
    • Bitmap objects (animation, movement, etc.)
    • JPG, BMP, PNG, GIF file formats
    • In-game console
    • Keyboard, mouse and joystick (only one) input
    • WAV sound: streaming and normal sampling


    The engine should be compiled as a DLL with the macro DXENGINELIB_EXPORTS defined.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Yea, I'm a butt, I never check my PMs. Hey thanks! I'll be looking at it and I'll PM you what I think.

  3. #3
    Registered User Diamonds's Avatar
    Join Date
    Oct 2002
    Posts
    68
    what's the registry stuff for?

  4. #4
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    If Direct3D isn't available, the engine will try software mode and display a warning. The warning will only appear once, so it sets a key in the registry to tell the program that it has been shown.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #5
    Registered User Diamonds's Avatar
    Join Date
    Oct 2002
    Posts
    68

    o cool

    oh no way, neat-o that is...

    btw, sang-drax do you think you could help me w/ this direct input strange-ness?

    http://cboard.cprogramming.com/showt...threadid=40895

  6. #6
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    another way is to store an empty file in the users tmp folder
    also good for storing setting the user wants when the defaults can't be used.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seven Kingdoms I: Ancient Adversaries for Linux
    By MIH1406 in forum Projects and Job Recruitment
    Replies: 13
    Last Post: 01-17-2010, 05:03 PM
  2. How do you call another source code file?
    By nifear4 in forum C Programming
    Replies: 2
    Last Post: 10-28-2008, 12:16 PM
  3. Lines from Unix's source code have been copied into the heart of Linux????
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 05-19-2003, 03:50 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Source Code Beautifier
    By Hammer in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-05-2002, 09:21 PM