(int target, int id)
| 1222 | |
| 1223 | |
| 1224 | protected boolean textureIsBound(int target, int id) { |
| 1225 | if (boundTextures == null) return false; |
| 1226 | |
| 1227 | if (target == TEXTURE_2D) { |
| 1228 | return boundTextures[activeTexUnit][0] == id; |
| 1229 | } else if (target == TEXTURE_RECTANGLE) { |
| 1230 | return boundTextures[activeTexUnit][1] == id; |
| 1231 | } else { |
| 1232 | return false; |
| 1233 | } |
| 1234 | } |
| 1235 | |
| 1236 | |
| 1237 | protected void initTexture(int target, int format, int width, int height) { |
no outgoing calls
no test coverage detected