.. _group__a3d__global__data__module:

##################
Global Data Module
##################

Accesses global definitions used by all PRC entities. 

This module defines the data for commonly used attributes, such as colors, textures, materials, and patterns. Global data is stored in the session's global memory, separate from the :c:type:`~A3DAsmModelFile`\ . Global data can be accessed independently from :c:type:`~A3DAsmModelFile`\ . Therefore, you can access colors, textures, materials, and patterns that may or may not be used by the entities that are used in an :c:type:`~A3DAsmModelFile`\ . All these global arrays are filled when reading the PRC physical file and optimized to save place. For instance, if two entities uses the same color definition (same triplet RGB), only one color will be stored in the array. 

**Returns**


   ``A3D_SUCCESS`` on success, or an error code on failure


.. rst-class:: kind-group kind-record

.. rubric:: Structures
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:struct:`~A3DGlobalData`

.. rst-class:: kind-group kind-function

.. rubric:: Functions
   :class: kind-group-title


.. rst-class:: api-xref-list


* :c:func:`~A3DGlobalGetPointer`
* :c:func:`~A3DGlobalGet`
* :c:func:`~A3DGlobalIsMaterialTexture`
* :c:func:`~A3DGlobalGetFillPatternType`

.. toctree::
   :maxdepth: 1
   :hidden:

   ../structures/A3DGlobalData
   ../functions/A3DGlobalGetPointer
   ../functions/A3DGlobalGet
   ../functions/A3DGlobalIsMaterialTexture
   ../functions/A3DGlobalGetFillPatternType


