DxEngine source code

This is a discussion on DxEngine source code within the Game Programming forums, part of the General Programming Boards category; Speedy5 told me in a PM that he wanted to take a look at the source code of my 2D ...

  1. #1
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Gteborg, 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.
    Attached Files Attached Files
    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
    Gteborg, 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?

    Strange Direct Input Behaviour

  6. #6
    Nor
    Nor is offline
    h ֆhr 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, 04: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21