Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 64

Thread: SDL 2.0 Headers for [Object] Pascal?

  1. #31
    Quote Originally Posted by Darkhog View Post
    Hedgewars were written with FPC? Interesting...
    They are (with a tiny commit by yours truly); it's my favourite fpc game. Except the GUI, that's C++ and Qt, and server, that was Haskell iirc.

  2. #32
    @Murmandamus You make headers only for FPC or you make it compatible with DelphiXE4 ?
    I'm change my Delphi DirectX games to SDL1.2 and I like port it to SDL2.0 with DelphiXE4


    www.kotai.es
    www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
    www.miniracingonline.com

  3. #33
    Here my also-SDL20-staticlink-capable SDL 2.0 (and SDL 1.2 hybrid per IFDEF) headers, which I've made in early 2012 for my c64 emulator Micro64 ( http://www.micro64.de ) on base of the old SDL 1.2 headers: http://rootserver.rosseaux.net/stuff/sdl.pas
    Last edited by BeRo; 17-07-2013 at 08:42 PM.

  4. #34
    Quote Originally Posted by Cybermonkey View Post
    I am looking for SDL2 headers, too.
    I'm writing SDL 2.0 Pascal Headers from the actual Repository. Here:

    https://github.com/ev1313/Pascal-SDL-2-Headers

    Actually not all Header-Files are translated yet, but the most important are: i was able creating windows with openGL Support and Event-Handling.

    (see my sample section: https://github.com/ev1313/Pascal-SDL-2-Samples/ )

    Of course everything is WIP, but you can help me by testing them

    Edit:

    Actually the RC-Candidat don't works with Pascal, you'll get an error with "missing main-function". this is fixed in the actual release, but this means you have to compile the DLL yourself. Here's an working DLL i've compiled with VSExpress:

    32 Bit: https://dl.dropboxusercontent.com/u/512 ... L2_x86.dll
    64 Bit: https://dl.dropboxusercontent.com/u/512 ... 86_x64.dll
    Last edited by End; 18-07-2013 at 10:01 AM.

  5. #35
    Quote Originally Posted by BeRo View Post
    Here my also-SDL20-staticlink-capable SDL 2.0 (and SDL 1.2 hybrid per IFDEF) headers, which I've made in early 2012 for my c64 emulator Micro64 ( http://www.micro64.de ) on base of the old SDL 1.2 headers: http://rootserver.rosseaux.net/stuff/sdl.pas
    Hey thanks, but why is SDL_BLITSURFACE commented out? There seems also no SDL_LOADBMP in SDL2.0? Is this not available anymore or just missing in your header?
    Best regards,
    Cybermonkey

  6. #36
    Quote Originally Posted by Cybermonkey View Post
    Hey thanks, but why is SDL_BLITSURFACE commented out? There seems also no SDL_LOADBMP in SDL2.0? Is this not available anymore or just missing in your header?
    SDL_BLITSURFACE = SDL_UPPERBLIT;

    But SDL_LOADBMP is there. (I have translated it in my header)

  7. #37
    Hm, I got:
    Target OS: Win32 for i386
    Compiling sdl2test.pas
    Compiling sdl.pas
    sdl2test.pas(14,21) Error: Identifier not found "SDL_LOADBMP"
    sdl2test.pas(59) Fatal: There were 1 errors compiling module, stopping
    Fatal: Compilation aborted
    Also a text research shows SDL_LOADBMP in the 1.2 part.
    Best regards,
    Cybermonkey

  8. #38
    Quote Originally Posted by Cybermonkey View Post
    Hm, I got:

    Also a text research shows SDL_LOADBMP in the 1.2 part.
    Well, try with my headers, it should work.

  9. #39
    Quote Originally Posted by End View Post
    Well, try with my headers, it should work.
    Oh, sorry, I tried the header from BeRo, but in your headers SDL_DELAY is missing. Seems I have to wait a little bit longer until they are finished.
    Best regards,
    Cybermonkey

  10. #40
    Quote Originally Posted by Cybermonkey View Post
    Oh, sorry, I tried the header from BeRo, but in your headers SDL_DELAY is missing. Seems I have to wait a little bit longer until they are finished.
    Yes, today I'll translate sdl_timer => SDL_DELAY.

Page 4 of 7 FirstFirst ... 23456 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •