Skip to content

coronalabs/plugins-sample-memoryBitmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextureResourceExternal example

Simple demo of cross-platform bitmap texture.

Usage:

local memTex = require "plugin.memoryBitmap"


local tex = memTex.newTexture({width=100, height=100})

display.newImage( tex.filename , tex.baseDir, display.contentCenterX, display.contentCenterY )

for y=1, tex.height do
	for x=1, tex.width do
		tex:setPixel( x,y, 1,0,0,1 )
	end
end

tex:invalidate()
tex:releaseSelf()

Code is shared among all platforms and is in shared/ directory

Links

About

Memory Bitmap Plugin. Simple demo of TextureResourceExternal and cross platform C plugins.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published