djyt / cannonball

Cannonball: An Enhanced OutRun Engine
http://reassembler.blogspot.com
649 stars 116 forks source link

Scanline Interpolation on Mac #4

Closed djyt closed 3 years ago

djyt commented 11 years ago

Most likely an Endian problem.

Screen Shot 2013-01-24 at 00 21 11

J1mbo commented 11 years ago

There seems to be some issue with scanlines on Ubuntu 13.10 as well. In window mode there is no change to the output, whilst when in full-screen mode the display is destroyed and just a bunch of random lines at the top appear. That aside it's fast and stable :)

djyt commented 11 years ago

Interesting. Are you using OpenGL or the software renderer?

J1mbo commented 11 years ago

Thanks - solved by moving to OpenGL. My Ubuntu cmake file now looks like this:

set(lib_base /usr/include)
set(sdl_root ${lib_base}/SDL)

include_directories("${sdl_root}")

link_libraries(cannonball 
    SDL
    SDLmain
    GL
)

# Linking
link_directories(
    "${sdl_root}/lib"
)

# Location for Cannonball to create save files
# Used to auto-generate setup.hpp with various file paths
set(xml_directory ./)
set(sdl_flags "SDL_DOUBLEBUF | SDL_SWSURFACE")

# Use OpenGL for rendering.
set(OPENGL 1)
djyt commented 3 years ago

I'm going to close this as we've moved to SDL 2 now, and by default any modern machine is going to be using OpenGL 2, especially from the next release.