|
|
|
@ -29,10 +29,12 @@ namespace Magnum { |
|
|
|
@brief Base for textures |
|
|
|
@brief Base for textures |
|
|
|
|
|
|
|
|
|
|
|
@attention Don't forget to call @ref Texture::setWrapping() "setWrapping()", |
|
|
|
@attention Don't forget to call @ref Texture::setWrapping() "setWrapping()", |
|
|
|
setMinificationFilter() and setMagnificationFilter() after creating the |
|
|
|
setMinificationFilter() and setMagnificationFilter() after creating the |
|
|
|
texture, otherwise the texture will be incomplete. If you specified mipmap |
|
|
|
texture, otherwise the texture will be incomplete. If you specified |
|
|
|
filtering in setMinificationFilter(), be sure to also either explicitly set |
|
|
|
@ref Wrapping "Wrapping::ClampToBorder" in @ref Texture::setWrapping() "setWrapping()", |
|
|
|
all mip levels or call generateMipmap(). |
|
|
|
be sure to also call setBorderColor(). If you specified mipmap filtering |
|
|
|
|
|
|
|
in setMinificationFilter(), be sure to also either explicitly set all mip |
|
|
|
|
|
|
|
levels or call generateMipmap(). |
|
|
|
|
|
|
|
|
|
|
|
The texture is bound to shader via bind(). Texture uniform on the shader must |
|
|
|
The texture is bound to shader via bind(). Texture uniform on the shader must |
|
|
|
also be set to particular texture layer using |
|
|
|
also be set to particular texture layer using |
|
|
|
|