Example #1
0
 static PyObject* pyAGAnim_getApps(pyAGAnim* self, void*) {
     plAGAnim* anim = self->fThis;
     PyObject* list = PyList_New(anim->getApplicators().size());
     for (size_t i=0; i < anim->getApplicators().size(); i++)
         PyList_SET_ITEM(list, i, ICreate(anim->getApplicators()[i]));
     return list;
 }
static PyObject* pyMessageWithCallbacks_getCallbacks(pyMessageWithCallbacks* self, void*) {
    const std::vector<plMessage*>& callbacks = self->fThis->getCallbacks();
    PyObject* tup = PyTuple_New(callbacks.size());
    for (size_t i = 0; i < callbacks.size(); ++i)
        PyTuple_SET_ITEM(tup, i, ICreate(callbacks[i]));
    return tup;
}
Example #3
0
static PyObject* pyResManager_ReadCreatable(pyResManager* self, PyObject* args) {
    pyStream* stream;
    if (!PyArg_ParseTuple(args, "O", &stream)) {
        PyErr_SetString(PyExc_TypeError, "ReadCreatable expects an hsStream");
        return NULL;
    }
    if (!pyStream_Check((PyObject*)stream)) {
        PyErr_SetString(PyExc_TypeError, "ReadCreatable expects an hsStream");
        return NULL;
    }
    return ICreate(self->fThis->ReadCreatable(stream->fThis));
}
Example #4
0
static PyObject* pyResManager_getObject(pyResManager* self, PyObject* args) {
    pyKey* key;
    if (!PyArg_ParseTuple(args, "O", &key)) {
        PyErr_SetString(PyExc_TypeError, "getObject expects a plKey");
        return NULL;
    }
    if (!pyKey_Check((PyObject*)key)) {
        PyErr_SetString(PyExc_TypeError, "getObject expects a plKey");
        return NULL;
    }
    return ICreate(self->fThis->getObject(*(key->fThis)));
}
Example #5
0
static PyObject* pyResManager_ReadCreatableStub(pyResManager* self, PyObject* args) {
    pyStream* stream;
    int size;
    if (!PyArg_ParseTuple(args, "Oi", &stream, &size)) {
        PyErr_SetString(PyExc_TypeError, "ReadCreatable expects hsStream, int");
        return NULL;
    }
    if (!pyStream_Check((PyObject*)stream)) {
        PyErr_SetString(PyExc_TypeError, "ReadCreatable expects hsStream, int");
        return NULL;
    }
    return ICreate(self->fThis->ReadCreatable(stream->fThis, true, (size_t)size));
}
Example #6
0
IDirect3DVertexShader9 *plDXVertexShader::GetShader(plDXPipeline* pipe)
{
    HRESULT hr = S_OK;
    if ( !fHandle )
    {
        if( FAILED(hr = ICreate(pipe)) )
            return nil;
    }

    if( FAILED(hr = ISetConstants(pipe)) )
        return nil;

    return fHandle;
}
Example #7
0
static PyObject* pyTMController_getScale(pyTMController* self, void*) {
    return ICreate(self->fThis->getScaleController());
}
Example #8
0
static PyObject* pyLayerAnimationBase_getTransform(pyLayerAnimationBase* self, void*) {
    return ICreate(self->fThis->getTransformCtl());
}
Example #9
0
static PyObject* pyLayerAnimationBase_getOpacity(pyLayerAnimationBase* self, void*) {
    return ICreate(self->fThis->getOpacityCtl());
}
Example #10
0
static PyObject* pyAGApplicator_getChannel(pyAGApplicator* self, void*) {
    return ICreate(self->fThis->getChannel());
}
Example #11
0
static PyObject* pyAGApplicator_getChannel(pyAGApplicator* self, void*) {
    return ICreate(IConvertApplicator(self)->getChannel());
}
Example #12
0
static PyObject* pyLeafController_ExpandToKeyController(pyLeafController* self) {
    return ICreate(IConvertController(self)->ExpandToKeyController());
}
static PyObject* pySoftVolumeSimple_getVolume(pySoftVolumeSimple* self, void*) {
    return ICreate(self->fThis->getVolume());
}
Example #14
0
static PyObject* pyDrawableSpans_getSpaceTree(pyDrawableSpans* self, void*) {
    return ICreate(self->fThis->getSpaceTree());
}
 static PyObject* pyCompoundPosController_getZ(pyCompoundPosController* self, void*) {
     return ICreate(self->fThis->getZ());
 }
static PyObject* pyResponderModifier_Cmd_getMsg(pyResponderModifier_Cmd* self, void*) {
    return ICreate(self->fThis->fMsg);
}
Example #17
0
static PyObject* pyLayerAnimationBase_getRuntime(pyLayerAnimationBase* self, void*) {
    return ICreate(self->fThis->getRuntimeCtl());
}
Example #18
0
static PyObject* pyLayerAnimationBase_getAmbient(pyLayerAnimationBase* self, void*) {
    return ICreate(self->fThis->getAmbientCtl());
}
Example #19
0
static PyObject* pyLayerAnimationBase_getSpecular(pyLayerAnimationBase* self, void*) {
    return ICreate(self->fThis->getSpecularCtl());
}
static PyObject* pyMatrixControllerChannel_getController(pyMatrixControllerChannel* self, void*) {
    return ICreate(self->fThis->getController());
}
Example #21
0
static PyObject* pyDDSurface_createMipmap(pyDDSurface* self) {
    plMipmap* tex = self->fThis->createMipmap();
    return ICreate(tex);
}