hsSDL2 icon indicating copy to clipboard operation
hsSDL2 copied to clipboard

Examples out of date

Open darkf opened this issue 10 years ago • 1 comments

When trying to compile Test.hs:

[1 of 1] Compiling Main             ( test.hs, test.o )

test.hs:17:18: Not in scope: `setVideoMode'

test.hs:17:43: Not in scope: data constructor `SWSurface'

test.hs:18:8: Not in scope: `setCaption'

test.hs:19:8: Not in scope: `enableUnicode'

test.hs:20:17: Not in scope: `loadBMP'

test.hs:26:20: Not in scope: `getVideoSurface'

test.hs:27:23: Not in scope: `surfaceGetPixelFormat'

test.hs:30:10: Not in scope: `fillRect'

test.hs:31:10: Not in scope: `fillRect'

test.hs:32:39: Not in scope: `surfaceGetWidth'

test.hs:33:40: Not in scope: `surfaceGetHeight'

test.hs:34:10: Not in scope: `blitSurface'

test.hs:35:10: Not in scope: `SDL.flip'

test.hs:40:19: Not in scope: `waitEvent'

They don't seem to exist in the API, and the docs are out of date with regards to this as well. Graphics.UI.SDL.WindowManagement does not even seem to exist anymore.

darkf avatar May 11 '14 11:05 darkf

Yeah, I think that examples are copied from old SDL bindings. Someone should port these to hsSDL2 :)

osa1 avatar May 11 '14 17:05 osa1