setTexture() public method

public setTexture ( string a_path ) : void
a_path string
return void
Esempio n. 1
0
File: Rope.cs Progetto: melburn/GLhf
 public override void loadContent()
 {
     base.loadContent();
     m_startPosition = m_position;
     m_endPosition = new CartesianCoordinate(m_position.getGlobalCartesian() + new Vector2(0, (float)Math.Max(m_lenght, 72)));
     m_endPosition.setParentPositionWithoutMoving(m_startPosition);
     m_line = new Line(m_startPosition, m_endPosition, new Vector2(36, 0), new Vector2(36, 0), Color.Beige, 5, true);
     m_line.setTexture("Images/Automagi/wtfrope");
     m_line.setLayer(m_layer);
     m_collisionShape = new CollisionLine(m_startPosition.getGlobalCartesian(), m_endPosition.getGlobalCartesian());
     m_rotationPoint.Y = 0;
     m_rotate = (float)Math.PI / 2;
 }