SO3Engine
|
SCOLBitmapWidget.cpp
Go to the documentation of this file.
111 bitmapWidget = static_cast<SBitmapWidget*> (SWidgetManager::getSingleton().CreateWidget(scene, name, leftPos, topPos, w, h, viewport, zorder, SO3_BITMAP_WIDGET_TYPE));
195 bitmapWidget = static_cast<SBitmapWidget*> (SWidgetManager::getSingleton().CreateWidget(scene, name, leftPos, topPos, w, h, viewport, SO3_BITMAP_WIDGET_TYPE));
249 if ((s == NIL) || (mat == NIL) || (tec == NIL) || (pass == NIL) || (index == NIL) || (w == NIL) || (h == NIL) || (n == NIL))
272 MMechostr(MSKDEBUG, "SO3BitmapWidgetCreateOnMaterial : %s already have a widget on it!\n", material->GetName().c_str());
287 Ogre::LogManager::getSingleton().logMessage("Can't load Bitmap Control : Material BaseWhite is Protected!", Ogre::LML_CRITICAL, true);
295 Ogre::LogManager::getSingleton().logMessage("Can't load Bitmap widget : Material has not enough Technique! ", Ogre::LML_CRITICAL, true);
302 Ogre::LogManager::getSingleton().logMessage("Can't load Bitmap widget : Material has not enough Pass! ", Ogre::LML_CRITICAL, true);
307 if ((material->getOgreMaterialPointer()->getTechnique(tec)->getPass(pass)->getNumTextureUnitStates()) == 0)
309 Ogre::LogManager::getSingleton().logMessage("Can't load Bitmap widget : Material has not enough Texture! ", Ogre::LML_CRITICAL, true);
314 if ((material->getOgreMaterialPointer()->getTechnique(tec)->getPass(pass)->getNumTextureUnitStates()) < index + 1)
316 Ogre::LogManager::getSingleton().logMessage("Can't load Bitmap widget : Material has not enough Texture! ", Ogre::LML_CRITICAL, true);
324 bitmapWidget = static_cast<SBitmapWidget*> (SWidgetManager::getSingleton().CreateWidget(scene, name, MTOI(w), MTOI(h), material, tec, pass, index, SO3_BITMAP_WIDGET_TYPE));
561 { "SO3BitmapWidgetCreate", 8, "fun [SO3_SCENE SO3_VIEWPORT S I I I I I] SO3_WIDGET", SO3BitmapWidgetCreate },
562 { "SO3BitmapWidgetCreateBackground", 7, "fun [SO3_SCENE SO3_VIEWPORT S I I I I] SO3_WIDGET", SO3BitmapWidgetCreateBackground },
563 { "SO3BitmapWidgetCreateOnMaterial", 8, "fun [SO3_SCENE SO3_MATERIAL S I I I I I] SO3_WIDGET", SO3BitmapWidgetCreateOnMaterial },
566 { "SO3BitmapWidgetBlitBuffer", 5, "fun [SO3_WIDGET ObjBuff I I I] I", SO3BitmapWidgetBlitBuffer }
577 return PKhardpak2(m, "SO3BmpWidget.pkg", sizeof(natSO3BmpWidget) / sizeof(natSO3BmpWidget[0]), natSO3BmpWidget);
int SCOLloadBitmapWidget(mmachine m, cbmachine w)
Load the SO3Engine Bitmap widget function.
Definition SCOLBitmapWidget.cpp:575
int SCOLfreeBitmapWidget()
free the SO3Engine Bitmap widget function
Definition SCOLBitmapWidget.cpp:585
MMechostr(MSKDEBUG, " > Start loading Plugin SO3Engine dll\n")
int SO3BitmapWidgetBlitBuffer(mmachine m)
SO3BitmapWidgetBlitBuffer : Blit a scol buffer on a "Bitmap Widget".
Definition SCOLBitmapWidget.cpp:512
int SO3BitmapWidgetBlit(mmachine m)
SO3BitmapWidgetBlit : Blit a scol objBitmap on a "Bitmap Widget".
Definition SCOLBitmapWidget.cpp:358
int SO3BitmapWidgetCreateOnMaterial(mmachine m)
SO3BitmapWidgetCreateOnMaterial : Set a texture bitmap on a material.
Definition SCOLBitmapWidget.cpp:236
int SO3BitmapWidgetCreateBackground(mmachine m)
SO3BitmapWidgetCreateBackground : Create a new bitmap widget on background.
Definition SCOLBitmapWidget.cpp:150
int SO3BitmapWidgetBlitAlpha(mmachine m)
SO3BitmapWidgetBlitAlpha : Blit a scol AlphaBitmap on a "Bitmap Widget".
Definition SCOLBitmapWidget.cpp:419
Generated by 1.9.8