All pastes #465586 Raw Edit

Miscellany

public cpp v1 · immutable
#465586 ·published 2007-04-30 13:10 UTC
rendered paste body
void Zoon::render(SDL_Surface* dbImage) {	SDL_Rect dest;	dest.x = m_model->x;	dest.y = m_model->y;		SDL_BlitSurface(m_view->getImage(), NULL, dbImage, &dest);		TTF_Font* blah = ImageLoader::get_instance()->get_font("sprites/verdana.ttf", 14);	SDL_Color clrFg = {0,0,0,0};  // Blue ("Fg" is foreground)	//if(blah == NULL)		//return 0;	SDL_Color clrBg = {255,255,255,0};	SDL_Surface *sText = TTF_RenderText_Shaded( blah, m_model->name.c_str(), clrFg, clrBg );   	SDL_Rect rcDest = {5,5,0,0};   	SDL_BlitSurface( sText,NULL, m_view->getBubble(),&rcDest );    			dest.x = m_model->x + 20;	dest.y = m_model->y - 40;	SDL_BlitSurface(m_view->getBubble(), NULL, dbImage, &dest);			}