Подпрограми


void CALLBACK display(void)



страница4/6
Дата03.01.2022
Размер277.5 Kb.
#112157
1   2   3   4   5   6
29264
Свързани:
29264, 29264, 29264, 29264, 29264, RKK2019-05 BenjaminFlander TheRightToSecurity, [9781839104633 - Towards Sustainable Welfare States in Europe] Chapter 10 Eco-social mobilization at the supranational level The case of The Right to Energy for All Europeans coalition, УПРАВЛЕНСКИ АСПЕКТИ НА МЕДИЦИНСКОТО ОСИГУРЯВАНЕ НА НАСЕЛЕНИЕТО ПРИ ПРИРОДНИ БЕДСТВИЯ

void CALLBACK display(void)

  • Увод
  • void CALLBACK display(void)
  • {
  • glClearColor(0.0, 0.0, 0.0, 0.0);
  • glClear(GL_COLOR_BUFFER_BIT );
  • glLoadIdentity();
  • glColor3f(1.0, 1.0, 1.0);
  • glBegin(GL_POLYGON);
  • glVertex3f(0.5,0.5,0.0);
  • glVertex3f(0.5,1.5,0.0);
  • glVertex3f(1.5,1.5,0.0);
  • glVertex3f(1.5,0.5,0.0);
  • glEnd();
  • glFlush();
  • }

int WINAPI WinMain(HINSTANCE hInstance,

  • Увод
  • int WINAPI WinMain(HINSTANCE hInstance,
  • HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  • {
  • auxInitDisplayMode (AUX_SINGLE|AUX_RGBA| AUX_DEPTH);
  • auxInitPosition (0, 0, 500, 500);
  • auxInitWindow ("OpenGL");
  • myinit();
  • auxReshapeFunc (myReshape);
  • auxMainLoop(display);
  • return 1;
  • }


Сподели с приятели:
1   2   3   4   5   6




©obuch.info 2024
отнасят до администрацията

    Начална страница