File: test9.cpp

package info (click to toggle)
clanlib 1.0~svn3827-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 24,600 kB
  • sloc: cpp: 101,591; xml: 6,410; makefile: 1,743; ansic: 463; perl: 424; php: 247; sh: 53
file content (26 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <ClanLib/display.h>
#include <ClanLib/core.h>
#include <ClanLib/gl.h>
#include <GL/gl.h>

CL_OpenGLSurface *surface9_1;
CL_OpenGLSurface *surface9_2;

void init_test9()
{
	glEnable(GL_TEXTURE_2D);
	surface9_1 = new CL_OpenGLSurface(new CL_TargaProvider("Images/test32_alpha.tga"), true);
	surface9_2 = new CL_OpenGLSurface(new CL_TargaProvider("Images/test32_alpha.tga"), true);
}

void deinit_test9()
{
	delete surface9_1;
	delete surface9_2;
}

void test9()
{
	surface9_1->bind();
	surface9_2->bind();
}