GithubHelp home page GithubHelp logo

spytheman / sdl2test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nsauzede/sdl2test

0.0 2.0 0.0 2.27 MB

Testing SDL2 with V, C and C++ languages

License: MIT License

C++ 21.03% C 14.09% V 62.43% Makefile 1.89% GLSL 0.10% AMPL 0.08% Verilog 0.40%

sdl2test's Introduction

sdl2test

Small examples of libSDL2 usage in V, C and C++ languages. Historically, the purpose was to evaluate the changes from SDL1 to SDL2.

UPDATE for those interested in the V SDL2 wrapper, a separate, cleaned up 'vsdl2' V module has been officially registered on vpm.best : here

The git repo : here

It also contains an updated tvintris example

Note that this repo still holds the experiments around SDL2/OpenGL and V (and others) Once they stabilize, the enhancements will be reported to the nsauzede.vsdl2 VPM module.


  • tvintris_v.v is a dual-player (local) version, inspired by ancient game Twintris. It uses published vpm module nsauzede.vsdl2

  • tvintrisgl_v.v is a dual-player (local) version with OpenGL, inspired by ancient game Twintris. It uses published vpm module nsauzede.vsdl2 This OpenGL version still lacks TTF font for now, however

Credits

  • tetris_v.v is just and SDL2 port of original source from vlang/v example by Alex I wrote a simple SDL2 V wrapper, ported GLFW usage to SDL2, tweaked colors and added music & sounds

Colors, Music and Sounds ripped from amiga title Twintris (1990 nostalgia !)

  • Graphician : Svein Berge
  • Musician : Tor Bernhard Gausen (Walkman/Cryptoburners)

Dependencies

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

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

Windows/MSYS2 : $ pacman -S mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer

Misc

Makefile auto-detects available SDL version (2 or 1)

  • vsdl : naive V wrapper for SDL2 binding
  • CSDL : small C++ class to abstract SDL1/2
  • various C and V examples to

sdl2test's People

Contributors

nsauzede avatar spytheman avatar nsauzede-intc avatar

Watchers

James Cloos avatar  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.