Coder Social home page Coder Social logo

vsdl2's Introduction

vsdl2

SDL2 V module -- libSDL2 wrapper

** IMPORTANT ** vsdl2 has been integrated in V vlib/sdl here. Not sure what will become of this legacy SDL PoC..

Current APIs available/tested in examples :

  • basic graphics (2D drawing)
  • Image
  • TTF font (text rendering)
  • input handling (keyboard/joystick events)
  • sounds (WAV mixing)
  • music (MOD mixing)
  • more to come.. (networking ?)

Support

vsdl2 is supported on :

  • linux (major distros)
  • MacOS (brew)
  • windows (msys2/mingw64 only for now)

Installation

v install nsauzede.vsdl2

Examples

tVintris

tVintris screenshot

Once you have installed nsauzede.vsdl2 (see above), you can run the example yourself like this : On linux:

v run ~/.vmodules/nsauzede/vsdl2/examples/tvintris/tvintris.v

On Windows (MSYS2):

v run /c/Users/${USER}/.vmodules/nsauzede/vsdl2/examples/tvintris/tvintris.v

Dependencies

Linux

Fedora : $ sudo dnf install SDL2-devel SDL2_ttf-devel SDL2_mixer-devel SDL2_image-devel

Ubuntu : $ sudo apt install libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev

ClearLinux : $ sudo swupd bundle-add devpkg-SDL2_ttf devpkg-SDL2_mixer devpkg-SDL2_image

MacOS

Brew : $ brew install sdl2 sdl2_gfx sdl2_ttf sdl2_mixer sdl2_image sdl2_net

Windows

Windows (MSYS2) : $ pacman -S mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-SDL2_image

Contributions

Thanks to spytheman and adlesh for their contributions to vsdl2

vsdl2's People

Contributors

nsauzede avatar adlesh avatar spytheman avatar

Watchers

 avatar

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.