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 1884 of file lua_pseudo_code.cpp.


Member Function Documentation

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

object methods exported to lua void Destroy ()

Definition at line 1888 of file lua_pseudo_code.cpp.

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

bool SaveAsFile (sFilePath)

Definition at line 1891 of file lua_pseudo_code.cpp.

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

float GetWidth ()

Definition at line 1894 of file lua_pseudo_code.cpp.

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

float GetHeight ()

Definition at line 1897 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 1902 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 1906 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 1910 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 1916 of file lua_pseudo_code.cpp.

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

return nil on error image LoadImageFromTexture (sTexName)

Definition at line 1920 of file lua_pseudo_code.cpp.

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

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

Definition at line 1923 of file lua_pseudo_code.cpp.

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

image ImageScale (image_source,iNewWidth,iNewHeight)

Definition at line 1926 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 1930 of file lua_pseudo_code.cpp.

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

image CreateImage ()

Definition at line 1933 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 1939 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 1943 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 1947 of file lua_pseudo_code.cpp.


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

Generated on Sun Feb 5 06:00:27 2012 for lua by  doxygen 1.5.6