コード例 #1
0
void ProjectiveTextureMethod::setRenderState(MethodVO* vo, IRenderable* renderable, IContext* context, Camera3D* camera)
{
	Matrix3D projMatrix;
	projMatrix.copyFrom(m_projector->getViewProjection());
	projMatrix.prepend(renderable->getRenderSceneTransform(camera));
	projMatrix.copyRawDataTo(vo->m_vertexData->data(), vo->m_vertexConstantsIndex, true);
}
コード例 #2
0
void Matrix3DUtils::invert(const Matrix3D &m, Matrix3D &out) {
    out.copyFrom(m);
    out.invert();
}