Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpu_object.c « intern « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3d379f3bd7d6ab37aefbfb7e17d3117055680e8 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "GPU_object.h"
#include "gpu_object_gles.h"
#ifndef GLES
#include "gpu_object_gl11.h"
#endif
#include "GPU_extensions.h"

GPU_object_func gpugameobj = {0}; 
 

void GPU_init_object_func(void)
{

if(!GPU_GLTYPE_FIXED_ENABLED)
{
gpugameobj.gpuVertexPointer = gpuVertexPointer_gles;
gpugameobj.gpuNormalPointer = gpuNormalPointer_gles;
gpugameobj.gpuColorPointer = gpuColorPointer_gles;
gpugameobj.gpuTexCoordPointer = gpuTexCoordPointer_gles;
gpugameobj.gpuClientActiveTexture = gpuClientActiveTexture_gles;

gpugameobj.gpuColorSet = gpuColorSet_gles;


gpugameobj.gpuCleanupAfterDraw = gpuCleanupAfterDraw_gles;
}
#ifndef GLES
else {
gpugameobj.gpuVertexPointer = gpuVertexPointer_gl11;
gpugameobj.gpuNormalPointer = gpuNormalPointer_gl11;
gpugameobj.gpuColorPointer = gpuColorPointer_gl11;
gpugameobj.gpuTexCoordPointer = gpuTexCoordPointer_gl11;
gpugameobj.gpuClientActiveTexture = gpuClientActiveTexture_gl11;

gpugameobj.gpuCleanupAfterDraw = gpuCleanupAfterDraw_gl11;
}
#endif




}