/**
 * Constructor.
 * @param status The player status.
 * @param target The target player (may not be @c nullptr).
 * @param subject The subject player (may not be @c nullptr).
 */
PlayerStatusAnnouncement::PlayerStatusAnnouncement(Status::status_t status,
	std::shared_ptr<Player::Player> target,
	std::shared_ptr<Player::Player> subject) :
	SUPER(subject->GetName(), RenderStatusText(status, *subject), target),
	subject(subject)
{
}
Exemplo n.º 2
0
void VimridViewer::RenderDelegate()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

	glTranslatef(0, 0, GetCameraVector().Z);
	glRotatef(GetCameraVector().Y, 1, 0, 0);
	glRotatef(GetCameraVector().X, 0, 1, 0);

	// Make sprites transparent if neccecary.
	VFloat alpha = mAlphaEnabled ? 0.6 : 1.0;
	glColor4f(1, 1, 1, alpha);

	RenderSprites();
	RenderStatusText();
}