mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Uses triangles for drawing lines in CCanvas2D.
Differential Revision: https://code.wildfiregames.com/D4444 This was SVN commit r26479.
This commit is contained in:
@@ -84,11 +84,17 @@ public:
|
||||
~CTextureManager();
|
||||
|
||||
/**
|
||||
* Create a texture with the given GL properties.
|
||||
* Create a texture with the given properties.
|
||||
* The texture data will not be loaded immediately.
|
||||
*/
|
||||
CTexturePtr CreateTexture(const CTextureProperties& props);
|
||||
|
||||
/**
|
||||
* Wraps a backend texture.
|
||||
*/
|
||||
CTexturePtr WrapBackendTexture(
|
||||
std::unique_ptr<Renderer::Backend::GL::CTexture> backendTexture);
|
||||
|
||||
/**
|
||||
* Returns a magenta texture. Use this for highlighting errors
|
||||
* (e.g. missing terrain textures).
|
||||
@@ -105,6 +111,11 @@ public:
|
||||
*/
|
||||
const CTexturePtr& GetTransparentTexture();
|
||||
|
||||
/**
|
||||
* Returns a white RGBA texture with alpha gradient.
|
||||
*/
|
||||
const CTexturePtr& GetAlphaGradientTexture();
|
||||
|
||||
/**
|
||||
* Work on asynchronous texture loading operations, if any.
|
||||
* Returns true if it did any work.
|
||||
@@ -313,7 +324,7 @@ public:
|
||||
|
||||
private:
|
||||
friend class CTextureManagerImpl;
|
||||
friend class SingleColorTexture;
|
||||
friend class CPredefinedTexture;
|
||||
friend struct TextureCacheCmp;
|
||||
friend struct TPequal_to;
|
||||
friend struct TPhash;
|
||||
|
||||
Reference in New Issue
Block a user