.. index:: pair: namespace; EE::Graphics .. _doxid-namespace_e_e_1_1_graphics: namespace EE::Graphics ====================== .. toctree:: :hidden: enum_EE_Graphics_CharacterAlignment.rst enum_EE_Graphics_FontAntialiasing.rst enum_EE_Graphics_FontHinting.rst enum_EE_Graphics_FontHorizontalAlign.rst enum_EE_Graphics_FontStretch.rst enum_EE_Graphics_FontType.rst enum_EE_Graphics_FontVerticalAlign.rst enum_EE_Graphics_FontWeight.rst enum_EE_Graphics_GenericFamily.rst enum_EE_Graphics_GlyphRenderMode.rst enum_EE_Graphics_GraphicsLibraryExtension.rst enum_EE_Graphics_GraphicsLibraryVersion.rst enum_EE_Graphics_LangScript.rst enum_EE_Graphics_LineWrapMode.rst enum_EE_Graphics_LineWrapType.rst enum_EE_Graphics_ParticleEffect.rst enum_EE_Graphics_PixelDensitySize.rst enum_EE_Graphics_PrimitiveFillMode.rst enum_EE_Graphics_PrimitiveType.rst enum_EE_Graphics_RenderMode.rst enum_EE_Graphics_TextDirection.rst enum_EE_Graphics_VertexArrayStates.rst enum_EE_Graphics_VertexBufferUsageType.rst enum_EE_Graphics_VertexFlags.rst struct_EE_Graphics_DrawableResourceCallbackState.rst struct_EE_Graphics_FontDesc.rst struct_EE_Graphics_FontQuery.rst struct_EE_Graphics_Glyph.rst struct_EE_Graphics_LineWrapInfo.rst struct_EE_Graphics_LineWrapInfoEx.rst struct_EE_Graphics_ResourceDeleter.rst struct_EE_Graphics_ShapedGlyph.rst struct_EE_Graphics_ShapedTextParagraph.rst struct_EE_Graphics_TextSelectionRange.rst struct_EE_Graphics_TextureRegistryRecord.rst struct_EE_Graphics_VertexData.rst struct_EE_Graphics_WhitespaceDisplayConfig.rst class_EE_Graphics_ArcDrawable.rst class_EE_Graphics_BatchRenderer.rst class_EE_Graphics_BlendMode.rst class_EE_Graphics_CircleDrawable.rst class_EE_Graphics_ClippingMask.rst class_EE_Graphics_ConvexShapeDrawable.rst class_EE_Graphics_Drawable.rst class_EE_Graphics_DrawableGroup.rst class_EE_Graphics_DrawableResource.rst class_EE_Graphics_DrawableResourceConnection.rst class_EE_Graphics_Font.rst class_EE_Graphics_FontBMFont.rst class_EE_Graphics_FontFamily.rst class_EE_Graphics_FontService.rst class_EE_Graphics_FontSprite.rst class_EE_Graphics_FontStyleConfig.rst class_EE_Graphics_FontTrueType.rst class_EE_Graphics_FragmentShader.rst class_EE_Graphics_FrameBuffer.rst class_EE_Graphics_GlobalBatchRenderer.rst class_EE_Graphics_GlyphDrawable.rst class_EE_Graphics_Image.rst class_EE_Graphics_LineWrap.rst class_EE_Graphics_NinePatch.rst class_EE_Graphics_Particle.rst class_EE_Graphics_ParticleSystem.rst class_EE_Graphics_PixelDensity.rst class_EE_Graphics_PrimitiveDrawable.rst class_EE_Graphics_Primitives.rst class_EE_Graphics_RectangleDrawable.rst class_EE_Graphics_Renderer.rst class_EE_Graphics_RendererGL.rst class_EE_Graphics_RendererGLShader.rst class_EE_Graphics_ResourceCatalog.rst class_EE_Graphics_ResourceId.rst class_EE_Graphics_ResourceKey.rst class_EE_Graphics_ResourceNameHash.rst class_EE_Graphics_ResourceScope.rst class_EE_Graphics_RichText.rst class_EE_Graphics_ScrollParallax.rst class_EE_Graphics_Shader.rst class_EE_Graphics_ShaderProgram.rst class_EE_Graphics_ShaderProgramRegistry.rst class_EE_Graphics_Sprite.rst class_EE_Graphics_StateListDrawable.rst class_EE_Graphics_StatefulDrawable.rst class_EE_Graphics_SystemFontResolver.rst class_EE_Graphics_Text.rst class_EE_Graphics_TextLayout.rst class_EE_Graphics_TextShapeRun.rst class_EE_Graphics_TextTransform.rst class_EE_Graphics_Texture.rst class_EE_Graphics_TextureAtlas.rst class_EE_Graphics_TextureAtlasLoader.rst class_EE_Graphics_TextureDrawable.rst class_EE_Graphics_TextureFactory.rst class_EE_Graphics_TextureLoader.rst class_EE_Graphics_TexturePacker.rst class_EE_Graphics_TextureRegion.rst class_EE_Graphics_TriangleDrawable.rst class_EE_Graphics_VertexBuffer.rst class_EE_Graphics_VertexBufferOGL.rst class_EE_Graphics_VertexBufferVBO.rst class_EE_Graphics_VertexShader.rst class_EE_Graphics_View.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace Graphics { // typedefs typedef :ref:`ResourcePtr`<:ref:`Drawable`> :target:`DrawablePtr`; typedef :ref:`ResourceWeakPtr`<:ref:`Drawable`> :target:`DrawableWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`Font`> :target:`FontPtr`; typedef :ref:`ResourceWeakPtr`<:ref:`Font`> :target:`FontWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`FontBMFont`> :target:`FontBMFontPtr`; typedef :ref:`ResourceWeakPtr`<:ref:`FontBMFont`> :target:`FontBMFontWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`FontSprite`> :target:`FontSpritePtr`; typedef :ref:`ResourceWeakPtr`<:ref:`FontSprite`> :target:`FontSpriteWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`FontTrueType`> :target:`FontTrueTypePtr`; typedef :ref:`ResourceWeakPtr`<:ref:`FontTrueType`> :target:`FontTrueTypeWeakPtr`; typedef std::unique_ptr<:ref:`FrameBuffer`, :ref:`ResourceDeleter`<:ref:`FrameBuffer`>> :target:`FrameBufferUniquePtr`; typedef :ref:`ResourcePtr`<:ref:`NinePatch`> :target:`NinePatchPtr`; typedef :ref:`ResourceWeakPtr`<:ref:`NinePatch`> :target:`NinePatchWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`Texture`> :target:`TexturePtr`; typedef std::shared_ptr :target:`ResourcePtr`; typedef std::weak_ptr :target:`ResourceWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`ResourceCatalog`> :target:`ResourceCatalogPtr`; typedef :ref:`ResourcePtr`<:ref:`ResourceScope`> :target:`ResourceScopePtr`; typedef :ref:`ResourcePtr`<:ref:`Shader`> :target:`ShaderPtr`; typedef :ref:`ResourceWeakPtr`<:ref:`Shader`> :target:`ShaderWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`ShaderProgram`> :target:`ShaderProgramPtr`; typedef :ref:`ResourceWeakPtr`<:ref:`ShaderProgram`> :target:`ShaderProgramWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`Sprite`> :target:`SpritePtr`; typedef :ref:`ResourceWeakPtr`<:ref:`Texture`> :target:`TextureWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`TextureAtlas`> :target:`TextureAtlasPtr`; typedef :ref:`ResourceWeakPtr`<:ref:`TextureAtlas`> :target:`TextureAtlasWeakPtr`; typedef :ref:`ResourcePtr`<:ref:`TextureDrawable`> :target:`TextureDrawablePtr`; typedef std::vector<:ref:`TextureRegistryRecord`> :target:`TextureRegistrySnapshot`; typedef :ref:`ResourcePtr`<:ref:`TextureRegion`> :target:`TextureRegionPtr`; typedef :ref:`ResourceWeakPtr`<:ref:`TextureRegion`> :target:`TextureRegionWeakPtr`; typedef std::unique_ptr<:ref:`VertexBuffer`, :ref:`ResourceDeleter`<:ref:`VertexBuffer`>> :target:`VertexBufferUniquePtr`; // enums enum :ref:`CharacterAlignment`; enum :ref:`FontAntialiasing`; enum :ref:`FontHinting`; enum :ref:`FontHorizontalAlign`; enum :ref:`FontStretch`; enum :ref:`FontType`; enum :ref:`FontVerticalAlign`; enum :ref:`FontWeight`; enum :ref:`GenericFamily`; enum :ref:`GlyphRenderMode`; enum :ref:`GraphicsLibraryExtension`; enum :ref:`GraphicsLibraryVersion`; enum :ref:`LangScript`; enum :ref:`LineWrapMode`; enum :ref:`LineWrapType`; enum :ref:`ParticleEffect`; enum :ref:`PixelDensitySize`; enum :ref:`PrimitiveFillMode`; enum :ref:`PrimitiveType`; enum :ref:`RenderMode`; enum :ref:`TextDirection`; enum :ref:`VertexArrayStates`; enum :ref:`VertexBufferUsageType`; enum :ref:`VertexFlags`; // structs struct :ref:`DrawableResourceCallbackState`; struct :ref:`FontDesc`; struct :ref:`FontQuery`; struct :ref:`Glyph`; struct :ref:`LineWrapInfo`; struct :ref:`LineWrapInfoEx`; template struct :ref:`ResourceDeleter`; struct :ref:`ShapedGlyph`; struct :ref:`ShapedTextParagraph`; struct :ref:`TextSelectionRange`; struct :ref:`TextureRegistryRecord`; struct :ref:`VertexData`; struct :ref:`WhitespaceDisplayConfig`; // classes class :ref:`ArcDrawable`; class :ref:`BatchRenderer`; class :ref:`BlendMode`; class :ref:`CircleDrawable`; class :ref:`ClippingMask`; class :ref:`ConvexShapeDrawable`; class :ref:`Drawable`; class :ref:`DrawableGroup`; class :ref:`DrawableResource`; class :ref:`DrawableResourceConnection`; class :ref:`Font`; class :ref:`FontBMFont`; class :ref:`FontFamily`; class :ref:`FontService`; class :ref:`FontSprite`; class :ref:`FontStyleConfig`; class :ref:`FontTrueType`; class :ref:`FragmentShader`; class :ref:`FrameBuffer`; class :ref:`GlobalBatchRenderer`; class :ref:`GlyphDrawable`; class :ref:`Image`; class :ref:`LineWrap`; class :ref:`NinePatch`; class :ref:`Particle`; class :ref:`ParticleSystem`; class :ref:`PixelDensity`; class :ref:`PrimitiveDrawable`; class :ref:`Primitives`; class :ref:`RectangleDrawable`; class :ref:`Renderer`; class :ref:`RendererGL`; class :ref:`RendererGLShader`; class :ref:`ResourceCatalog`; class :ref:`ResourceId`; class :ref:`ResourceKey`; class :ref:`ResourceNameHash`; class :ref:`ResourceScope`; class :ref:`RichText`; class :ref:`ScrollParallax`; class :ref:`Shader`; class :ref:`ShaderProgram`; class :ref:`ShaderProgramRegistry`; class :ref:`Sprite`; class :ref:`StateListDrawable`; class :ref:`StatefulDrawable`; class :ref:`SystemFontResolver`; class :ref:`Text`; class :ref:`TextLayout`; class :ref:`TextShapeRun`; class :ref:`TextTransform`; class :ref:`Texture`; class :ref:`TextureAtlas`; class :ref:`TextureAtlasLoader`; class :ref:`TextureDrawable`; class :ref:`TextureFactory`; class :ref:`TextureLoader`; class :ref:`TexturePacker`; class :ref:`TextureRegion`; class :ref:`TriangleDrawable`; class :ref:`VertexBuffer`; class :ref:`VertexBufferOGL`; class :ref:`VertexBufferVBO`; class :ref:`VertexShader`; class :ref:`View`; // global variables :ref:`EE_API` :ref:`Renderer`* :target:`GLi`; const int :target:`VertexElementCount`[] = { 2, 2, 2, 2, 2, 4 }; // global functions constexpr bool :target:`operator==`(const :ref:`BlendMode`& left, const :ref:`BlendMode`& right); constexpr bool :target:`operator!=`(const :ref:`BlendMode`& left, const :ref:`BlendMode`& right); :ref:`ResourceNameHash` :ref:`resourceNameHash`(std::string_view name); template :ref:`ResourcePtr` :target:`makeResource`(Args&&... args); :ref:`EE_API` :ref:`ResourceCatalog`& :ref:`globalResourceCatalog`(); :ref:`EE_API` :ref:`ResourceScope`& :target:`defaultResourceScope`(); } // namespace Graphics .. _details-namespace_e_e_1_1_graphics: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; resourceNameHash .. _doxid-namespace_e_e_1_1_graphics_1a06e8f952a6469e45bb37adbab47abb56: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`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 :ref:`ResourceKey ` in persistent formats. .. index:: pair: function; globalResourceCatalog .. _doxid-namespace_e_e_1_1_graphics_1a2b313bd7dcf69b86fc12d760d75979fd: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`EE_API` :ref:`ResourceCatalog`& globalResourceCatalog() Engine-owned process defaults for pure :ref:`Graphics ` and application-wide resolution.