blob: 930f976ced5202ca6eb2285ed34011b5043c81f3 (
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
|
public final boolean matchesProfile() {
return matchesProfile(GLProfile.getProfile());
}
public final boolean matchesProfile(String test_profile) {
if(null==test_profile) {
return false;
}
if(test_profile.equals(GLProfile.GL2)) {
return isGL2();
}
if(test_profile.equals(GLProfile.GLES1)) {
return isGLES1();
}
if(test_profile.equals(GLProfile.GLES2)) {
return isGLES2();
}
return false;
}
public int glGetBoundBuffer(int target) {
return bufferStateTracker.getBoundBufferObject(target, this);
}
|