cImage_L Class Reference

List of all members.

Public Member Functions

mixed Destroy (...)
mixed SaveAsFile (...)
 bool SaveAsFile (sFilePath)
mixed GetWidth (...)
 float GetWidth ()
mixed GetHeight (...)
 float GetHeight ()
mixed MakeTexture (...)
mixed LoadToTexture (...)
mixed GenerateBitMask (...)

Static Public Member Functions

static mixed LoadImageFromFile (...)
static mixed LoadImageFromTexture (...)
static mixed SubImage (...)
 image SubImage (image_source,iOffsetX,iOffsetY,iNewWidth,iNewHeight)
static mixed ImageScale (...)
 image ImageScale (image_source,iNewWidth,iNewHeight)
static mixed ImageBlit (...)
static mixed CreateImage (...)
 image CreateImage ()
static mixed PrepareImage (...)
static mixed CreatePreparedImage (...)
static mixed SetPixelInPreparedImage (...)


Detailed Description

Definition at line 8043 of file lua_pseudo_code.cpp.


Member Function Documentation

mixed cImage_L::Destroy (   ...  )  [inline]

object methods exported to lua void Destroy ()

Definition at line 8047 of file lua_pseudo_code.cpp.

mixed cImage_L::SaveAsFile (   ...  )  [inline]

bool SaveAsFile (sFilePath)

Definition at line 8050 of file lua_pseudo_code.cpp.

mixed cImage_L::GetWidth (   ...  )  [inline]

float GetWidth ()

Definition at line 8053 of file lua_pseudo_code.cpp.

mixed cImage_L::GetHeight (   ...  )  [inline]

float GetHeight ()

Definition at line 8056 of file lua_pseudo_code.cpp.

mixed cImage_L::MakeTexture (   ...  )  [inline]

returns the texname, generates a unique name if no argument is passed bIsAlpha only works for single-chan-format images (colorformat) string MakeTexture (sNewTexName=nil,bIsAlpha=false)

Definition at line 8061 of file lua_pseudo_code.cpp.

mixed cImage_L::LoadToTexture (   ...  )  [inline]

loads the image to an existing texture, returns true on success bool LoadToTexture (sTexName)

Definition at line 8065 of file lua_pseudo_code.cpp.

mixed cImage_L::GenerateBitMask (   ...  )  [inline]

useful for mousepicking or similar , bit is set if pixel_alpha >= fMinAlpha bitmask GenerateBitMask (fMinAlpha=0.5)

Definition at line 8069 of file lua_pseudo_code.cpp.

static mixed cImage_L::LoadImageFromFile (   ...  )  [inline, static]

static methods exported to lua return nil on error also searches in ogre ressource paths if just a filename is provided image LoadImageFromFile (sFileNameOrPath)

Definition at line 8075 of file lua_pseudo_code.cpp.

static mixed cImage_L::LoadImageFromTexture (   ...  )  [inline, static]

return nil on error image LoadImageFromTexture (sTexName)

Definition at line 8079 of file lua_pseudo_code.cpp.

static mixed cImage_L::SubImage (   ...  )  [inline, static]

image SubImage (image_source,iOffsetX,iOffsetY,iNewWidth,iNewHeight)

Definition at line 8082 of file lua_pseudo_code.cpp.

static mixed cImage_L::ImageScale (   ...  )  [inline, static]

image ImageScale (image_source,iNewWidth,iNewHeight)

Definition at line 8085 of file lua_pseudo_code.cpp.

static mixed cImage_L::ImageBlit (   ...  )  [inline, static]

x,y = left-top in destination void ImageBlit (image_source,image_dest,x,y)

Definition at line 8089 of file lua_pseudo_code.cpp.

static mixed cImage_L::CreateImage (   ...  )  [inline, static]

image CreateImage ()

Definition at line 8092 of file lua_pseudo_code.cpp.

static mixed cImage_L::PrepareImage (   ...  )  [inline, static]

void PrepareImage (w,h,r,g,b,a) prepare a global image for fast pixel paint w,h image size r,g,b,a can be nil to default to 0, rgba in [0,1] call CreatePreparedImage to create the finished image, THIS IS NOT THREADSAFE!!!!

Definition at line 8098 of file lua_pseudo_code.cpp.

static mixed cImage_L::CreatePreparedImage (   ...  )  [inline, static]

call CreatePreparedImage to finished the image and return it, THIS IS NOT THREADSAFE!!!! image CreatePreparedImage () you must call

Definition at line 8102 of file lua_pseudo_code.cpp.

static mixed cImage_L::SetPixelInPreparedImage (   ...  )  [inline, static]

set pixel color at x,y THIS IS NOT THREADSAFE!!!! void SetPixelInPreparedImage (x,y, r,g,b,a) rgba in [0,1]

Definition at line 8106 of file lua_pseudo_code.cpp.


The documentation for this class was generated from the following file:

Generated on Fri Mar 29 05:41:09 2013 for lua by  doxygen 1.5.6