namespace EE::Graphics¶
Overview¶
namespace Graphics { // typedefs typedef ResourcePtr<Drawable> DrawablePtr; typedef ResourceWeakPtr<Drawable> DrawableWeakPtr; typedef ResourcePtr<Font> FontPtr; typedef ResourceWeakPtr<Font> FontWeakPtr; typedef ResourcePtr<FontBMFont> FontBMFontPtr; typedef ResourceWeakPtr<FontBMFont> FontBMFontWeakPtr; typedef ResourcePtr<FontSprite> FontSpritePtr; typedef ResourceWeakPtr<FontSprite> FontSpriteWeakPtr; typedef ResourcePtr<FontTrueType> FontTrueTypePtr; typedef ResourceWeakPtr<FontTrueType> FontTrueTypeWeakPtr; typedef std::unique_ptr<FrameBuffer, ResourceDeleter<FrameBuffer>> FrameBufferUniquePtr; typedef ResourcePtr<NinePatch> NinePatchPtr; typedef ResourceWeakPtr<NinePatch> NinePatchWeakPtr; typedef ResourcePtr<Texture> TexturePtr; typedef std::shared_ptr<T> ResourcePtr; typedef std::weak_ptr<T> ResourceWeakPtr; typedef ResourcePtr<ResourceCatalog> ResourceCatalogPtr; typedef ResourcePtr<ResourceScope> ResourceScopePtr; typedef ResourcePtr<Shader> ShaderPtr; typedef ResourceWeakPtr<Shader> ShaderWeakPtr; typedef ResourcePtr<ShaderProgram> ShaderProgramPtr; typedef ResourceWeakPtr<ShaderProgram> ShaderProgramWeakPtr; typedef ResourcePtr<Sprite> SpritePtr; typedef ResourceWeakPtr<Texture> TextureWeakPtr; typedef ResourcePtr<TextureAtlas> TextureAtlasPtr; typedef ResourceWeakPtr<TextureAtlas> TextureAtlasWeakPtr; typedef ResourcePtr<TextureDrawable> TextureDrawablePtr; typedef std::vector<TextureRegistryRecord> TextureRegistrySnapshot; typedef ResourcePtr<TextureRegion> TextureRegionPtr; typedef ResourceWeakPtr<TextureRegion> TextureRegionWeakPtr; typedef std::unique_ptr<VertexBuffer, ResourceDeleter<VertexBuffer>> VertexBufferUniquePtr; // enums enum CharacterAlignment; enum FontAntialiasing; enum FontHinting; enum FontHorizontalAlign; enum FontStretch; enum FontType; enum FontVerticalAlign; enum FontWeight; enum GenericFamily; enum GlyphRenderMode; enum GraphicsLibraryExtension; enum GraphicsLibraryVersion; enum LangScript; enum LineWrapMode; enum LineWrapType; enum ParticleEffect; enum PixelDensitySize; enum PrimitiveFillMode; enum PrimitiveType; enum RenderMode; enum TextDirection; enum VertexArrayStates; enum VertexBufferUsageType; enum VertexFlags; // structs struct DrawableResourceCallbackState; struct FontDesc; struct FontQuery; struct Glyph; struct LineWrapInfo; struct LineWrapInfoEx; template <typename T> struct ResourceDeleter; struct ShapedGlyph; struct ShapedTextParagraph; struct TextSelectionRange; struct TextureRegistryRecord; struct VertexData; struct WhitespaceDisplayConfig; // classes class ArcDrawable; class BatchRenderer; class BlendMode; class CircleDrawable; class ClippingMask; class ConvexShapeDrawable; class Drawable; class DrawableGroup; class DrawableResource; class DrawableResourceConnection; class Font; class FontBMFont; class FontFamily; class FontService; class FontSprite; class FontStyleConfig; class FontTrueType; class FragmentShader; class FrameBuffer; class GlobalBatchRenderer; class GlyphDrawable; class Image; class LineWrap; class NinePatch; class Particle; class ParticleSystem; class PixelDensity; class PrimitiveDrawable; class Primitives; class RectangleDrawable; class Renderer; class RendererGL; class RendererGLShader; class ResourceCatalog; class ResourceId; class ResourceKey; class ResourceNameHash; class ResourceScope; class RichText; class ScrollParallax; class Shader; class ShaderProgram; class ShaderProgramRegistry; class Sprite; class StateListDrawable; class StatefulDrawable; class SystemFontResolver; class Text; class TextLayout; class TextShapeRun; class TextTransform; class Texture; class TextureAtlas; class TextureAtlasLoader; class TextureDrawable; class TextureFactory; class TextureLoader; class TexturePacker; class TextureRegion; class TriangleDrawable; class VertexBuffer; class VertexBufferOGL; class VertexBufferVBO; class VertexShader; class View; // global variables EE_API Renderer* GLi; const int VertexElementCount[] = { 2, 2, 2, 2, 2, 4 }; // global functions constexpr bool operator==(const BlendMode& left, const BlendMode& right); constexpr bool operator!=(const BlendMode& left, const BlendMode& right); ResourceNameHash resourceNameHash(std::string_view name); template <typename T, typename... Args> ResourcePtr<T> makeResource(Args&&... args); EE_API ResourceCatalog& globalResourceCatalog(); EE_API ResourceScope& defaultResourceScope(); } // namespace Graphics
Detailed Documentation¶
Global Functions¶
ResourceNameHash resourceNameHash(std::string_view name)
Hashes a semantic resource name with the vendored wyhash implementation used by UnorderedMap. Do not serialize the result: use the complete ResourceKey in persistent formats.
EE_API ResourceCatalog& globalResourceCatalog()
Engine-owned process defaults for pure Graphics and application-wide resolution.