GithubHelp home page GithubHelp logo

moai-glfw's Introduction

MOAI-GLFW

GLFW OS X host for MOAI.

Create your windows as normal:

MOAISim.openWindow().

MOAIHostMgr

A singleton that interfaces GLFW.

MOAIHostMgr.setWindowSize( width, height )

Sets the size of the window.

MOAIHostMgr.getTime()

Returns the value of the high precision timer. The time is measured in seconds, and is returned as a double precision floating point value.

MOAIHostMgr.getVideoModes( maxNumberOfVideoModesToReturn )

Returns a table of available video modes. Each video modes is represented as a table with the following keys:

  • width
  • height
  • redBits
  • greenBits
  • blueBits

MOAIHostMgr.getDesktopVideoMode()

Returns the current video mode of the desktop, see above.

MOAIHostMgr.setOnWindowChangedSizeCallback( callbackFunction )

Set a callback that is called whenver the size of the window changes. function callbackFunction( width, height )

MOAIHostMgr.setOnWindowCloseCallback( callbackFunction )

Set a callback that is called when a user requests that the window should be closed, typically by clicking the window close icon (e.g. the cross in the upper right corner of a window under Microsoft Windows), and on Mac OS X also when selecting Quit from the application menu. function callbackFunction()

MOAIHostMgr.minimiseWindow()

MOAIHostMgr.restoreWindow()

MOAIHostMgr.getNumberOfProcessors()

Return's the number of processors available.

MOAIHostMgr.enable( token ) / MOAIHostMgr.disable( token )

Enable and disable certain settings. Token can be one of the followin constants:

moai-glfw's People

Contributors

perky avatar

Watchers

 avatar  avatar  avatar

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.