Ejemplo n.º 1
0
DDPoint EsDirector::getLightPosition(int index)
{
	if(index>=0&&index<_light.size()){
		return _light[index]->position();
	}
	return DDPoint(1,1,1);
}
DDPoint DDInputSystem::GetMousePosition()
{
	POINT pt;
	
	GetCursorPos( &pt );
	ScreenToClient( DDApplication::GetInstance()->GetHWND(), &pt );

	return DDPoint( (float)pt.x, (float)pt.y );
}