public Texture Test() { var x = 0; var y = 0; var z = 0; var frame = MatrixFrame.Identity; var cx = x + frame.origin.x; var cy = y + frame.origin.y; var cz = z + frame.origin.z; Vec3 position = new Vec3(cx, cy, cz); Mat3 rotation = frame.rotation; MatrixFrame matrix = new MatrixFrame(rotation, position); var modelTableau = new ModelTableau(); modelTableau.Initialize(); GameEntity entity = GameEntity.Instantiate(modelTableau.TableauScene, "ship_a", matrix); modelTableau.SetModel(entity); modelTableau.SetTargetSize(400, 800); return(modelTableau.Texture); }
public ModelTableauTextureProvider() { this._modelTableau = new ModelTableau(); }