(int target, int texture)
| 3237 | protected abstract void activeTextureImpl(int texture); |
| 3238 | |
| 3239 | public void bindTexture(int target, int texture) { |
| 3240 | bindTextureImpl(target, texture); |
| 3241 | |
| 3242 | if (boundTextures == null) { |
| 3243 | maxTexUnits = getMaxTexUnits(); |
| 3244 | boundTextures = new int[maxTexUnits][2]; |
| 3245 | } |
| 3246 | |
| 3247 | if (maxTexUnits <= activeTexUnit) { |
| 3248 | throw new RuntimeException(TEXUNIT_ERROR); |
| 3249 | } |
| 3250 | |
| 3251 | if (target == TEXTURE_2D) { |
| 3252 | boundTextures[activeTexUnit][0] = texture; |
| 3253 | } else if (target == TEXTURE_RECTANGLE) { |
| 3254 | boundTextures[activeTexUnit][1] = texture; |
| 3255 | } |
| 3256 | } |
| 3257 | protected abstract void bindTextureImpl(int target, int texture); |
| 3258 | |
| 3259 | /////////////////////////////////////////////////////////// |
no test coverage detected