Beispiel #1
0
void Render(SDL_Window* window, SDL_GLContext context) {
	SDL_GL_MakeCurrent(window, context);
	glClearColor(ConvertColor(69), ConvertColor(177), ConvertColor(237), 1);
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glMatrixMode(GL_PROJECTION);
	glEnable(GL_BLEND);
	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

	environment.Draw();
	player.Draw();
	environment.DrawForeground();

	SDL_GL_SwapWindow(window);
}
Beispiel #2
0
	void Draw()
	{
		
		
		
		atews[0].Draw();
		
		
		
		atews[1].Draw();

		environment.Draw();

		bullets[0].Draw();
	}