int main(int argc, char *argv[]) { Initialize(); MakeWindow(); MakeMenu(); InstallTimer(); EventLoop(); return 0; }
void CXySlider::OnLButtonDblClk(UINT /*nFlags*/, CPoint point) { SetFocus(); if(GetGripperRect().PtInRect(point)) { DoMoveBy(-m_pos.x, -m_pos.y); } else { DoPage(point); InstallTimer(); } }
void CXySlider::OnLButtonDown(UINT /*nFlags*/, CPoint point) { SetFocus(); CRect rc = GetGripperRect(); if(rc.PtInRect(point)) { DoDrag(point); } else { DoPage(point); InstallTimer(); } }
int main(int argc, char *argv[]) { CGTableCount sampleCount; CGDisplayErr cgErr; Initialize(); MakeWindow(); MakeMenu(); // Grab original gamma settings cgErr = CGGetDisplayTransferByTable( 0, 256, gOriginalRedTable, gOriginalGreenTable, gOriginalBlueTable, &sampleCount); InstallTimer(); EventLoop(); // Restore original gamma settings cgErr = CGSetDisplayTransferByTable( 0, 256, gOriginalRedTable, gOriginalGreenTable, gOriginalBlueTable); return 0; }
// Initialization functions void GameApp::InitApp(void) { #ifndef GL_ARB_texture_non_power_of_two printf("DOES NOT SUPPORT NON POWER OF TWO!!\n"); #else printf("DOES SUPPORT NON POWER OF TWO!!\n"); #endif printf("InitApp...\n"); ResW = 600; ResH = 600; // ilInit(); InitializeSDL(); InitializeDrawContext(ResW, ResH); ResetGame(); InstallTimer(); //player1 = new GameSprite; // PlayerX.SetWorldX(0); // PlayerX.SetWorldY(0); // PlayerX.SetOrientation(0.0); //context.DrawTexture(context.GetBackground(),0 , 0); }