GithubHelp home page GithubHelp logo

moonsdl2's People

Contributors

stetre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rollerozxa

moonsdl2's Issues

Procedure not found when using zbstudio

I built it using mingw and ran the example with lua 5.2. The build seemed successful but when I went to run the example code it gave me this error.

C:\zbstudio\bin\lua52.exe: error loading module 'SDL2' from file 'C:\zbstudio\bin\clibs52\moonsdl2.dll':
	Procedure not found.


stack traceback:
	[C]: in ?
	[C]: in function 'require'
	C:\games\sdltest\main.lua:4: in main chunk
	[C]: in ?

Window closes ~10 seconds after program execution

Im using the example with lua 5.4 and I'm on windows

local sdl = require("moonsdl2")

sdl.init()

local window = sdl.create_window("Hello, triangle!", nil, nil, 800, 600, sdl.WINDOW_SHOWN)

local renderer = sdl.create_renderer(window, nil, sdl.RENDERER_ACCELERATED|sdl.RENDERER_PRESENTVSYNC)

local vertices = 
    { --   position           color         
        { { 400, 150 }, { 255, 0, 0, 255 } },
        { { 200, 450 }, { 0, 0, 255, 255 } },
        { { 600, 450 }, { 0, 255, 0, 255 } },
    }

local quit = false
while not quit do
   e = sdl.poll_event()
   if e then
	  print(e[item])
      if e.type == 'quit' then quit = false end
   end
   renderer:set_draw_color({0, 0, 0, 255})
   renderer:clear()
   renderer:render_geometry(nil, vertices, nil)
   renderer:present()
end

Error using the lib in Windows

I built the moonsdl2 library on windows using mingw64 and msys2. Thing is, running the example gives this:
`C:\Lua\5.4\lua54.exe: error loading module 'moonsdl2' from file '.\moonsdl2.dll':
%1 is not a valid Win32 application.

stack traceback:
[C]: in ?
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in ?`

Important to note that i dont think i properly built it, it gave this error many times:
image

Add vore

I speak for everyone when I say you should add vore
image

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.