Uses triangles for drawing lines in CCanvas2D.

Differential Revision: https://code.wildfiregames.com/D4444
This was SVN commit r26479.
This commit is contained in:
vladislavbelov
2022-02-25 06:59:57 +00:00
parent a3b99b17b0
commit d1f1d41a9f
5 changed files with 327 additions and 67 deletions
+13 -2
View File
@@ -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;