| 134 | } |
| 135 | |
| 136 | OglCachePtr OglRenderer::getTexture() |
| 137 | { |
| 138 | if (!texture) |
| 139 | { |
| 140 | makeCurrent(); |
| 141 | texture = new OglCache(); |
| 142 | texture->texture = createTexture(0,0);//TEXTURE_BORDER/2, TEXTURE_BORDER/2); |
| 143 | texture->width = this->width; |
| 144 | texture->height = this->height; |
| 145 | } |
| 146 | return texture; |
| 147 | } |
| 148 | |
| 149 | GLuint OglRenderer::createTexture(ms_uint32 offsetX, ms_uint32 offsetY) |
| 150 | { |
no outgoing calls
no test coverage detected