From: John L. <jr...@us...> - 2008-01-21 00:47:14
|
Update of /cvsroot/wxlua/wxLua/samples/image In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29466/samples/image Added Files: image.wx.lua Log Message: Add the image.wx.lua file --- NEW FILE: image.wx.lua --- --[[ /////////////////////////////////////////////////////////////////////////////// // Name: samples/image/image.cpp // Purpose: sample showing operations with wxImage // Author: Robert Roebling // Modified by: // Created: 1998 // RCS-ID: $Id: image.wx.lua,v 1.1 2008/01/21 00:47:10 jrl1 Exp $ // Copyright: (c) 1998-2005 Robert Roebling // License: wxWindows licence /////////////////////////////////////////////////////////////////////////////// --]] --[[ win32: lua5.1.exe -e "package.cpath = './?.dll'" ./image.wx.lua linux: [...1241 lines suppressed...] local function create() local this = wx.wxGetApp() if not OnInit(this) then return nil end return this end function __call(self, ...) return create(...) end setmetatable(_M, _M) -- // main program ---------------------------------------------------------- local require = require local MyApp = require"MyApp" MyApp():MainLoop() -- EOF ---------------------------------------------------------------------- |