mruby-sdl2 wrapped 'SDL2.0'.
edit your 'build_config.rb'.
run 'make' command.
build_config.rb:
conf.gem :github => 'crimsonwoods/mruby-sdl2', :branch => 'master'
edit your 'build_config.rb'.
add one mrbgem 'mruby-gles' in your build config script.
run 'make' command.
run mruby with your script.
create window with 'SDL_WINDOW_OPENGL' flag.
create GLContext associated window.
draw something
swap window
build_config.rb:
conf.gem :github => 'xxuejie/mruby-gles', :branch => 'master'
Sample code is contained into 'samples' directory.
summary
header
status
Initialization and Shutdown
SDL.h
supported
Configuration Variables
SDL_hints.h
supported
Error Handling
SDL_error.h
supported partially
Log Handling
SDL_log.h
not supported
Assertions
SDL_assert.h
not supported
Querying SDL Version
SDL_version.h
supported
summary
header
status
Display and Window Management
SDL_video.h
supported
2D Accelerated Rendering
SDL_render.h
supported
Pixel Formats and Conversion Routines
SDL_pixels.h
not supported
Rectangle Functions
SDL_rect.h
supported
Surface Creation and Simple Drawing
SDL_surface.h
supported
Platform-specific Window Management
SDL_syswm.h
not supported
Clipboard Handling
SDL_clipboard.h
not supported
summary
header
status
Event Handling
SDL_events.h
supported
Keyboard Support
SDL_keyboard.h SDL_keycode.h SDL_scancode.h
supported partially
Mouse Support
SDL_mouse.h
supported
Joystick Support
SDL_joystick.h
not supported
Game Controller Support
SDL_gamecontroller.h
not supported
summary
header
status
Force Feedback Support
SDL_haptic.h
not supported
summary
header
status
Audio Device Management, Playing and Recording
SDL_audio.h
supported
summary
header
status
Thread Management
SDL_thread.h
supported
Thread Synchronization Primitives
SDL_mutex.h
supported
Atomic Operations
SDL_atomic.h
not supported
summary
header
status
Timer Support
SDL_timer.h
supported
summary
header
status
File I/O Abstraction
SDL_rwops.h
not supported
summary
header
status
Shared Object Loading and Function Lookup
SDL_loadso.h
not supported
Platform and CPU Information
summary
header
status
Platform Detection
SDL_platform.h
not supported
CPU Feature Detection
SDL_cpuinfo.h
not supported
Byte Order and Byte Swapping
SDL_endian.h
not supported
Bit Manipulation
SDL_bits.h
not supported
summary
header
status
Power Management Status
SDL_power.h
not supported
summary
header
status
Other
SDL_stdinc.h
not supported
MIT License