static void Draw(gl_context_t* context) { // Clear the color buffer // Set background color and clear buffers glClearColor(1, 1, 1, 1); glClear(GL_COLOR_BUFFER_BIT); check_gl(); image_t* img = bundle_image_named("beer-label-ruination-ipa.jpg"); DrawBeerLabel(context, img); image_free(img); // TODO:DOUG Add blur DrawToolbarBackground(context); DrawGear(context); DrawSelectedTap(context); DrawRightLabel(context, "54\xc2\xb0" "F"); gl_context_swap_buffers(context); }
void CEneEx0006Tank::Draw() { //---------------------------------------------- //描画 //---------------------------------------------- Sint32 ax,ay; if( !m_bDisp ) return; ax = m_Pos.x + 0*100; ay = m_Pos.y + 0*100; for(Sint32 ii=0;ii<enPartsMax;ii++) { switch( m_stItem[ ii ].sType ){ case enEngineItemNone: break; case enEngineItemShaft: DrawShaft( ii ); break; case enEngineItemGear_S: case enEngineItemGear_L: DrawGear( ii ); break; case enEngineItemFuta: DrawFuta( ii ); break; case enEngineItemCyrinder: DrawCyrinder( ii ); break; case enEngineItemCore: DrawCore( ii ); break; } } }