29 Texture( LWTextureID _txtr_id = 0) : txtr_id(_txtr_id) {;}
32 LWTextureID
getID()
const {
return txtr_id; }
62 LWTxtrContextID
contextCreate (LWTxtrParamFuncs lwtxtparamfunc) {
return globPtr->contextCreate (lwtxtparamfunc); }
76 void contextAddParam (LWTxtrContextID lwtxtrcontextid, LWTxtrParamDesc pdesc) {
globPtr->contextAddParam (lwtxtrcontextid, pdesc); }
88 void create (
int returntype,
const char *
name, LWTxtrContextID lwtxtrcontextid = 0,
void *userdata = 0)
90 txtr_id =
globPtr->create (returntype, name, lwtxtrcontextid, &userdata);
101 void copy(LWTextureID to, LWTextureID from){
globPtr->copy(to, from);}
107 void newtime (LWTime time, LWFrame frame){
globPtr->newtime(txtr_id, time, frame);}
113 void load(
const LWLoadState *loadstate ) {
globPtr->load(txtr_id, loadstate);}
116 void save(
const LWSaveState *savestate ) {
globPtr->save(txtr_id, savestate);}
124 double evaluate (LWMicropolID lwmp,
double *value) {
return globPtr->evaluate(txtr_id, lwmp, value);}
198 LWTLayerID
getID()
const {
return id;}
223 template <
typename T>
336 return setParam(TXTAG_AA, antialiasing ? 1 : 0);
353 return setParam(TXTAG_PIXBLEND, pixelblending ? 1: 0);
373 return (
setParam(TXTAG_ACTIVE, 1) == 1) ?
true:
false;
378 return (
setParam(TXTAG_ACTIVE, 0) == 1) ?
true:
false;
383 return (
setParam(TXTAG_INVERT, 1) == 1) ?
true:
false;
438 template <
typename T>
566 return ( isAct != 0);
633 void evaluateUV(
int wAxis,
int oAxis,
double oPos[3],
double wPos[3],
double uv[2])
635 globPtr->evaluateUV(
id, wAxis, oAxis, oPos, wPos, uv);
661 #endif // LWPP_TEXTURE_H