Skip to content
makoto edited this page Nov 1, 2015 · 3 revisions

##Changes from 1.5 to 1.7

Major refactors/improvements

  • Font/glyph caching
  • new drawing pipeline
  • SDF support
  • Async image loading
  • Keycodes
  • removed Chipmunk
  • underlay tables
  • LOD
  • MOAIPinTransform
  • MOAIProp -> MOAIGraphicsProp

Lua API Changes

MOAIAction

  • Added MOAIAction.EVENT_START
  • Added optional defer parameter to MOAIAction.attach, MOAIAction.addChild, MOAIAction.start and a method MOAIAction.defer() which defers an actions update until the next time the action tree is processed
  • Added MOAIAction.getChildren(), MOAIAction.isPaused(), MOAIAction.setAutoStop
  • Added MOAIActionTree class
  • Removed MOAIActionMgr

MOAIAnimCurve

  • added MOAIAnimCurve.getValueRange method

MOAIAppAndroid

  • added MOAIAppAndroid.getSystemUptime

MOAIBillingAndroid

  • added MOAIBillingAndroid.purchaseProductFortumo

MOAIBox2D

  • added MOAIBox2DArbiter.getContactPoints
  • added MOAIBox2DBody.getContactList
  • added MOAIBox2DWeldJoint.getDampingRatio,MOAIBox2DWeldJoint.setDampingRatio
  • added MOAIBox2DWeldJoint.getFrequency,MOAIBox2DWeldJoint.setFrequency
  • added collideConnected to all MOAIBox2DWorld.add* methods

MOAIUtil

  • added MOAIByteStream which implements a stream with fixed-size internal buffer

MOAICamera

  • added MOAICamera.getFloorMove, MOAICamera.getViewVector, MOAICamera.lookAt, MOAICamera.moveFieldOfView,MOAICamera.seekFieldOfView,MOAICamera.setType

MOAICoroutine

  • added MOAICoroutine.SetDefaultParent which makes the coroutine the parent for any actions launched from this coroutine

MOAIChipmunk

  • Removed!

MOAIDataBuffer

  • added MOAIDataBuffer.clear

MOAIDebugLines

  • added MOAIDebugLines.COLLISION_ACTIVE_PROP_BOUNDS, MOAIDebugLines.COLLISION_ACTIVE_OVERLAP_PROP_BOUNDS,MOAIDebugLines.COLLISION_ACTIVE_TOUCHED_PROP_BOUNDS, MOAIDebugLines.COLLISION_OVERLAP_PROP_BOUNDS

MOAIDeck

  • bit of a refactor into MOAIDeck and MOAIStandardDeck with textures and shaders being merged into a Material Batch @patrick please help here

MOAIDraw

  • Added MOAIDraw.drawBezierCurve
  • Added MOAIDraw.drawElements for rendering a vertex buffer
  • Added MOAIDraw.setBlendMode

MOAIGlyphCache

  • Changes around dynamic glyph cache. @patrick please help here

MOAIEaseType

  • Ease types added:
    • MOAIEaseType.EXTRA_SHARP_EASE_IN
    • MOAIEaseType.EXTRA_SHARP_EASE_OUT
    • MOAIEaseType.EXTRA_SHARP_SMOOTH
    • MOAIEaseType.EXTRA_SHARP_SMOOTH_EASE_OUT
    • MOAIEaseType.SOFT_SMOOTH_EASE_OUT
    • MOAIEaseType.SINE_EASE_IN
    • MOAIEaseType.SINE_EASE_OUT
    • MOAIEaseType.SINE_SMOOTH
    • MOAIEaseType.CIRC_EASE_IN
    • MOAIEaseType.CIRC_EASE_OUT
    • MOAIEaseType.CIRC_SMOOTH
    • MOAIEaseType.BOUNCE_IN
    • MOAIEaseType.BOUNCE_OUT
    • MOAIEaseType.BOUNCE_SMOOTH
    • MOAIEaseType.ELASTIC_IN
    • MOAIEaseType.ELASTIC_OUT
    • MOAIEaseType.ELASTIC_SMOOTH
    • MOAIEaseType.BACK_EASE_IN
    • MOAIEaseType.BACK_EASE_OUT
    • MOAIEaseType.BACK_SMOOTH

MOAIEnvironment

  • added iosIFA and iosIFV to MOAIEnvironment

MOAIFileSystem

  • added optional base parameter to getRelativePath
  • added MOAIFileSystem.getVirtualPathInfo
  • added MOAIFileSystem.loadFile to quickly load entire file into string
  • added MOAIFileSystem.saveFile
  • added MOAIFileSystem.stripPKZipTimestamps

MOAIFont

  • added MOAIFont.getCache
  • added MOAIFont.getReader
  • added MOAIFont.setCache
  • added MOAIFont.setFilter
  • added MOAIFont.setShader

MOAIGeometryWriter

  • New class MOAIGeometryWriter: Interface for writing and manipulating procedural geometry.

MOAIGfxDevice

  • removed MOAIGfxDevice.isProgrammable
  • removed MOAIGfxDevice.setPointSize
  • added MOAIGfxDevice.getMaxTextureSize

MOAIGfxQuadDeck2D

  • added MOAIGfxQuadDeck2D.getQuad, MOAIGfxQuadDeck2D.getRect, MOAIGfxQuadDeck2D.getUVQuad,MOAIGfxQuadDeck2D.getUVRect
  • added MOAIGfxQuadDeck2D.setMaterialID

MOAIGfxResource

  • renamed MOAIGfxResource.softRelease to MOAIGfxResource.purge
  • added MOAIGfxResource.setReloader

MOAIGfxState

  • REMOVED!

MOAIGlyphCache

  • This is now the base class, see MOAIDynamicGlyphCache

MOAIGlyphCacheBase

  • REMOVED!, base is now MOAIGlyphCache

MOAIProp

  • some functionality lifted to MOAIGraphicsProp and MOAIGraphicsProp2D

MOAIHashWriter

  • added MOAIHashWriter.setHMACKey
  • added MOAIHashWriter.getHashBase64
  • added MOAIHashWriter.getHashHex
  • added MOAIHashWriter.getHash
  • added MOAIHashWriter.getChecksum

MOAIHashWriterCrypto

  • like hashwriter but inside and using moai-crypto

MOAIHttpTaskBase

  • added MOAIHttpTaskBase.setSSLOptions

MOAIImage

  • added MOAIImage.COLOR_FMT_A_1,MOAIImage.COLOR_FMT_A_4, MOAIImage.COLOR_FMT_LA_8
  • added MOAIImage.average,MOAIImage.blur
  • renamed MOAIImage.convertColors to MOAIImage.convert
  • replaced MOAIImage.convertToGrayScale to MOAIImage.desaturate
  • added srcFactor,dstFactor,equation to copyRect for alpha blending
  • added MOAIImage.fillEllipse
  • added MOAIImage.gammaCorrection
  • added MOAIImage.generateOutlineFromSDF
  • added MOAIImage.generateSDF
  • added MOAIImage.generateSDFAA
  • added MOAIImage.generateSDFDeadReckoning
  • added MOAIImage.loadAsync
  • added MOAIImage.mix - Transforms each color by a 4x4 matrix.
  • added MOAIImage.simpleThreshold - This is a 'naive' threshold implementation that forces image color channels to 0 or 1 based on a per-channel threshold value.
  • replaced MOAIImage.writePNG with generic MOAIImage.write that takes a format parameter

MOAIImageTexture

  • renamed MOAIImageTexture.invalidate to MOAIImageTexture.updateRegion

MOAIIndexBuffer

  • added MOAIIndexBuffer.copyFromStream
  • added MOAIIndexBuffer.countElements
  • added MOAIIndexBuffer.printIndicies
  • added MOAIIndexBuffer.setIndexSize

MOAIInputDevice

  • added MOAIInputDevice.getHardwareInfo gets any hardware metadata string specified by host

MOAIKeyCode

  • added MOAIKeyCode constants that define keys in a code readable way eg MOAIKeyCode.LEFT and MOAIKeyCode.RIGHT

MOAIKeyboardSensor

  • changed MOAIKeyboardSensor.keyUp,MOAIKeyboardSensor.keyIsUp, MOAIKeyboardSensor.keyDown, MOAIKeyboardSensor.keyIsDown to take a string or ... of MOAIKeyCodes
  • renamed MOAIKeyboardSensor.setCallback to MOAIKeyboardSensor.setKeyCallback
  • added MOAIKeyboardSensor.setCharCallback
  • added MOAIKeyboardSensor.setEditCallback

MOAILayer

  • added MOAILayer.wndToWorldRay Project a point from window space into world space and return vector suitable for 3d picking
  • added sortInViewSpace optional parameter to MOAILayer.setSortMode
  • added MOAILayer.getCamera
  • added MOAILayer.getViewport
  • added MOAILayer.getFitting3d
  • replaced MOAILayer.setBox2DWorld with MOAILayer.setUnderlayTable

MOAILogMgr

  • added MOAILogMgr.LOG_DEBUG
  • added MOAILogMgr.log that takes a level and a message
  • added MOAILogMgr.log that takes a level, a token, and a message

MOAIParticleEmitter

  • added MOAIParticleEmitter.setState - sets initial state index for new particles

MOAIParticleScript

  • added MOAIParticleScript.randInt - loads a random integer from a range
  • renamed MOAIParticleScript.setReg to MOAIParticleScript.setLiveReg

MOAIPartcileSystem

  • added optional state parameter to MOAIPartcileSystem.pushPartcile

MOAIPartition

  • added interfaceMask and queryMask as optional parameters to the end​ of propForRay , propList, propListForPoint, propListForRay,propListForRect
  • changed propForPoint to have interfaceMask and queryMask as first optional parameters

MOAIPinTransform

  • added MOAIPinTransform - 2D transform for connecting transforms across layers. Useful for HUD overlay items and map pins.

MOAIProp

  • most functionality was pushed up to MOAIGraphicsProp

MOAISerializer

  • replaced MOAISerializer.exportToFile with MOAISerializer.serializeToFile
  • replaced MOAISerializer.exportToString with MOAISerializer.serializeToString

MOAIShader

  • replaced with MOAIShaderProgram

MOAIShaderMgr

  • added DECK2D_SNAPPING_SHADER, FONT_SNAPPING_SHADER, FONT_EFFECTS_SHADER, LINE_SHADER_3D
  • renamed MOAIShaderMgr.getShader to MOAIShaderMgr.getProgram

MOAISim ...