Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Diego

Pages: [1]
1
SFML projects / LuaSFML
« on: November 13, 2007, 03:55:44 am »
Thank you.

Quote

Have you converted every SFML package ?

No, i'm just finishing the Window package.

Diego.-

2
General / RenderWindow causes app to fail.
« on: November 12, 2007, 10:23:55 pm »
Try debugging to see where it crashes. Never happenned this to me.

3
SFML projects / LuaSFML
« on: November 12, 2007, 08:00:39 pm »
Thanks everybody.
This is the new syntax using OO. http://lua.pastey.net/77016
Code: [Select]

-- Create the window
Window = sf.Window:New(800, 600, 32, "Title", sf.Window.Fixed, 0) ;

-- Main loop
IsRunning = true
while (IsRunning) do
-- Manage events
Event = sf.Event:New()
while (Window:GetEvent(Event)) do
-- If close event
if (Event.Type == sf.Event.Close) then
-- Terminate
IsRunning = false ;
end
end

-- Display the window
Window:Display()
end


Opinions? Thanks.

Regards.

4
SFML projects / LuaSFML
« on: November 12, 2007, 04:55:47 am »
Thank you, i will consider it.

Regards.

5
SFML projects / LuaSFML
« on: November 12, 2007, 04:38:31 am »
I'm working on a module for Lua using SFML.

Here some simple Lua code example http://lua.pastey.net/76987

Code: [Select]

-- Requires the window module
require("LuaSFML.window")

--[[
  Create the window:
-- Width              = 800
-- Height             = 600
-- BPP                = 32
-- Caption            = "Title"
-- Style              = sfWindowFixed
-- Antialiasing level = 0
]]
Window = sfWindowCreate(800, 600, 32, "Title", sfWindowFixed, 0)

-- Start main loop
IsRunning = true

while (IsRunning) do

-- Manage events
Event = sfEventCreate()
while (sfWindowGetEvent(Window, Event)) do
-- Close event
if (sfEventType(Event) == sfEventClose) then
-- Terminate
IsRunning = false ;
end
end

-- Display the window
sfWindowDisplay(Window)
end


I don't know if someone is already working on a wrapper for lua, let me know.

Regards.

6
SFML website / little mistake in the Doc example
« on: November 11, 2007, 07:30:05 am »
Hello everybody, i've been checking out this library and is going really well, i'm already working in some stuff using it.

Anyway, to the topic, there is a little mistake here:
http://sfml.sourceforge.net/documentation/
In the "Short Example", in this piece exactly:
Code: [Select]

     // Create the main window
     sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window", false);

The third argument is the windows style, maybe in a previous version it was some IsFullScreen flag or something.

Something else, when in the Doc section, the Roadmap section is gone.

Well, just that, not very important. I'll keep looking at the library, and maybe get more involved.

Regards.

Pages: [1]