Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

☢️ V Nuklear module -- nuklear wrapper

License

NotificationsYou must be signed in to change notification settings

nsauzede/vnk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is still work-in-progress!

V Nuklear module -- a nuklear wrapper in V language

If you are new to nuklear seehere

If you are new to V language seehere

Current APIs available/tested in examples :

  • create SDL2 / OpenGL window
  • set clear color
  • create nuklear subwindows
  • create widgets : buttons, slider, text inputs, color picker, etc...
  • persistent layout
  • debug tools : FPS, stats, etc..

Examples

See in examples/mainnk_v/mainnk_v.v

This is a V port of Nuklear sdl_opengl3 demo

How to testvnk on linux : (prerequisite : v is already installed and in the PATH)

$ v install nsauzede.vsdl2$ v install nsauzede.vnk$ cd ~/.vmodules/nsauzede/vnk$ make$ v run examples/mainnk_v/mainnk_v.v

There is also a hot-reload mode (-live) :

$ cd ~/.vmodules/nsauzede/vnk$ v -live run examples/mainnk_v/mainnk_v.v

In hot-reload mode, once the vnk demo windows is shown, try to modify thelive_main function (tagged with[live])to see the "live" changes appearing a few instants after saving the source file.Enjoy !

Dependencies

Ubuntu :$ sudo apt install git cmake libsdl2-dev libglew-dev libsdl2-ttf-dev libsdl2-mixer-dev

ClearLinux :$ sudo swupd bundle-add git cmake devpkg-SDL2 devpkg-glew devpkg-SDL2_ttf devpkg-SDL2_mixer

Windows/MSYS2 :$ pacman -S msys/git mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-glew mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_mixer

About

☢️ V Nuklear module -- nuklear wrapper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp