Git Product home page Git Product logo

sdl's People

Contributors

alexanderuv avatar colemancda avatar thara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sdl's Issues

Add release tag

Hi,

Would it be possible to add a release tag to the repo, as it can't currently be imported as a dependency without one.

Thanks

SDLDemo target does not build with SPM

Hi, how can I build the demo app? When I try to build it using swift build I get

Compile Swift Module 'SDLDemo' (1 sources)
~/Downloads/SDL/Sources/SDLDemo/main.swift:5:21: error: use of unresolved identifier 'SDLRenderDrivers'
let renderDrivers = SDLRenderDrivers()
                    ^~~~~~~~~~~~~~~~
~/Downloads/SDL/Sources/SDLDemo/main.swift:22:50: error: cannot use optional chaining on non-optional value of type '() throws -> SDLDisplayMode'
    let framesPerSecond = UInt(window.displayMode?.refresh_rate ?? 60)
                               ~~~~~~~~~~~~~~~~~~^
                                                 
~/Downloads/SDL/Sources/SDLDemo/main.swift:68:32: error: use of unresolved identifier 'Surface'
            let imageSurface = Surface(rgb: textureSize, depth: 32)!
                               ^~~~~~~
SDL.SDLSurface:1:20: note: did you mean 'SDLSurface'?
final public class SDLSurface {
                   ^
CSDL2.SDL_Surface:1:15: note: did you mean 'SDL_Surface'?
public struct SDL_Surface {
              ^
error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/damiaan/Downloads/SDL/.build/debug.yaml main output:

I am using Swift toolchain:

Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0

swift run: error 'Int' has no member 'rawValue'

Thanks for the library. I'm totally new to this and your lib is the first I got working.

After #8, when running swift run I get errors of this kind:

error: value of type 'Int' has no member 'rawValue' static let argb8888 = SDLPixelFormat.Format(rawValue: UInt32(SDL_PIXELFORMAT_ARGB8888.rawValue))

So I went to back to a version before this pull was merged and it worked.

MacOS 10.15.1
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Target: x86_64-apple-darwin19.0.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.