Skip to content

IceDragon200/mruby-sfml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mruby SFML

Umbrella gem for other mruby-sfml-* gems

All bindings were done against SFML 2.4, however some classes may be left out or incomplete (primarily from the network module)

Modules

Retrieving SFML version

The current binded SFML version can be retried by using the constants provided below, these are from the <SFML/Config.h> header and so may not reflect the library version.

SFML::Version::MAJOR # => 2
SFML::Version::MINOR # => 4
SFML::Version::PATCH # => 1
SFML::Version::STRING # => 2.4.1
SFML::VERSION # => alias for SFML::Version::STRING

Dependencies

The gems do not specify any library or headers, as the user of the gems, you must manually include the libraries and headers in your mruby config.

Sample Build Config

MRuby::Build.new do |conf|
  if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
    toolchain :visualcpp
  else
    toolchain :gcc
  end

  conf.gembox 'default'

  conf.gem github: 'IceDragon200/mruby-sfml-audio'
  conf.gem github: 'IceDragon200/mruby-sfml-graphics'
  conf.gem github: 'IceDragon200/mruby-sfml-network'
  conf.gem github: 'IceDragon200/mruby-sfml-system'
  conf.gem github: 'IceDragon200/mruby-sfml-window'
  conf.gem github: 'IceDragon200/mruby-sfml'

  conf.linker do |linker|
    linker.libraries.push('sfml-system')
    linker.libraries.push('sfml-audio')
    linker.libraries.push('sfml-graphics')
    linker.libraries.push('sfml-window')
    linker.libraries.push('sfml-system')
    linker.libraries.push('sfml-network')
  end
end

About

Proxy gem for mruby-sfml-* gems

Resources

Stars

Watchers

Forks

Packages

No packages published