コード例 #1
0
 /*!
  * Sets a new external file texture.  Removes any existing texture references, whether internal or external.
  * \param[in] file_name The file name of the external texture.  Often needs to follow game guidlines to be found.
  */
 public void SetExternalTexture(string file_name)
 {
     useExternal = 1;
     pixelData   = null;
     fileName    = file_name;
     unknownLink = null;
 }
コード例 #2
0
ファイル: NiSourceTexture.cs プロジェクト: libcs/game-estates
 public NiSourceTexture()
 {
     useExternal       = (byte)1;
     unknownLink       = null;
     unknownByte       = (byte)1;
     pixelData         = null;
     isStatic          = (byte)1;
     directRender      = 1;
     persistRenderData = 0;
 }
コード例 #3
0
        /*!
         * Sets a new internal file texture.  Removes any existing texture references, whether internal or external.
         * \param[in] original_file_name The original file name of the texture.  This may be optional.
         * \param[in] pixel_data The NiPixelData object that contains the texture image data.
         */
        public void SetInternalTexture(string original_file_name, NiPixelData pixel_data)
        {
            useExternal = 0;
            fileName    = string.Empty;

            //TODO: Fix name problem with Unknown Byte in XML
            unknownByte = 0;
            fileName    = original_file_name;
            pixelData   = pixel_data;
        }
コード例 #4
0
ファイル: NiSourceTexture.cs プロジェクト: libcs/game-estates
 /*! NIFLIB_HIDDEN function.  For internal use only. */
 internal override void FixLinks(Dictionary <uint, NiObject> objects, List <uint> link_stack, List <NiObject> missing_link_stack, NifInfo info)
 {
     base.FixLinks(objects, link_stack, missing_link_stack, info);
     if (info.version >= 0x0A010000)
     {
         if ((useExternal == 1))
         {
             unknownLink = FixLink <NiObject>(objects, link_stack, missing_link_stack, info);
         }
     }
     if ((useExternal == 0))
     {
         pixelData = FixLink <NiPixelFormat>(objects, link_stack, missing_link_stack, info);
     }
 }