<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hedgedocs.com/index.php?action=history&amp;feed=atom&amp;title=NN_Chunk_Format_-_MATERIALNAMELIST</id>
	<title>NN Chunk Format - MATERIALNAMELIST - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hedgedocs.com/index.php?action=history&amp;feed=atom&amp;title=NN_Chunk_Format_-_MATERIALNAMELIST"/>
	<link rel="alternate" type="text/html" href="https://hedgedocs.com/index.php?title=NN_Chunk_Format_-_MATERIALNAMELIST&amp;action=history"/>
	<updated>2026-04-17T08:18:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://hedgedocs.com/index.php?title=NN_Chunk_Format_-_MATERIALNAMELIST&amp;diff=191&amp;oldid=prev</id>
		<title>PTKay: Created page with &quot;== NNE_MATERIALNAME_SORTTYPE == {{Notice|type=note|content=The underlying type of this enum is not specified, thus it may differ depending on the platform. In practice, it&#039;s always an &lt;code&gt;int32_t&lt;/code&gt; in all known NN games.}}This enum indicates the way the NNS_MATERIALNAME structs are sorted in the &lt;code&gt;pMaterialNameList&lt;/code&gt; array used in the NN Chunk Format - MATERIALNAMELIST#NNS MATERIALNAMELIST|NNS_MATE...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hedgedocs.com/index.php?title=NN_Chunk_Format_-_MATERIALNAMELIST&amp;diff=191&amp;oldid=prev"/>
		<updated>2025-02-21T10:42:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== NNE_MATERIALNAME_SORTTYPE == {{Notice|type=note|content=The underlying type of this enum is not specified, thus it may differ depending on the platform. In practice, it&amp;#039;s always an &amp;lt;code&amp;gt;int32_t&amp;lt;/code&amp;gt; in all known NN games.}}This enum indicates the way the &lt;a href=&quot;/index.php/NN_Chunk_Format_-_MATERIALNAMELIST#NNS_MATERIALNAME&quot; title=&quot;NN Chunk Format - MATERIALNAMELIST&quot;&gt;NNS_MATERIALNAME&lt;/a&gt; structs are sorted in the &amp;lt;code&amp;gt;pMaterialNameList&amp;lt;/code&amp;gt; array used in the NN Chunk Format - MATERIALNAMELIST#NNS MATERIALNAMELIST|NNS_MATE...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== NNE_MATERIALNAME_SORTTYPE ==&lt;br /&gt;
{{Notice|type=note|content=The underlying type of this enum is not specified, thus it may differ depending on the platform. In practice, it&amp;#039;s always an &amp;lt;code&amp;gt;int32_t&amp;lt;/code&amp;gt; in all known NN games.}}This enum indicates the way the [[NN Chunk Format - MATERIALNAMELIST#NNS MATERIALNAME|NNS_MATERIALNAME]] structs are sorted in the &amp;lt;code&amp;gt;pMaterialNameList&amp;lt;/code&amp;gt; array used in the [[NN Chunk Format - MATERIALNAMELIST#NNS MATERIALNAMELIST|NNS_MATERIALNAMELIST]].&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
enum NNE_MATERIALNAME_SORTTYPE&lt;br /&gt;
{&lt;br /&gt;
  // The NNS_MATERIALNAME structs are sorted by their&lt;br /&gt;
  // [iMaterial] index field, from least to greatest.&lt;br /&gt;
  NNE_MATERIALNAME_SORTTYPE_INDEX,&lt;br /&gt;
&lt;br /&gt;
  // The NNS_MATERIALNAME structs are sorted by their&lt;br /&gt;
  // [Name] field, ordered as if by C&amp;#039;s strcmp.&lt;br /&gt;
  NNE_MATERIALNAME_SORTTYPE_NAME&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NNS_MATERIALNAMELIST ==&lt;br /&gt;
{{Notice|type=note|content=This is the root struct for all MATERIALNAMELIST data chunks.}}&lt;br /&gt;
A list of the names of the materials in an object (model).&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
struct NNS_MATERIALNAMELIST&lt;br /&gt;
{&lt;br /&gt;
  // The way the NNS_MATERIALNAME structs in&lt;br /&gt;
  // the [pMaterialNameList] array are sorted.&lt;br /&gt;
  NNE_MATERIALNAME_SORTTYPE SortType;&lt;br /&gt;
&lt;br /&gt;
  // The number of elements in the [pMaterialNameList] array.&lt;br /&gt;
  int32_t nMaterial;&lt;br /&gt;
&lt;br /&gt;
  // An array of NNS_MATERIALNAME structs.&lt;br /&gt;
  NNS_MATERIALNAME* pMaterialNameList;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// Macros used by Text-Form files:&lt;br /&gt;
#define MATERIALNAMELIST(SortType, nMaterial, pMaterialNameList) \&lt;br /&gt;
    { SortType, nMaterial, pMaterialNameList }&lt;br /&gt;
&lt;br /&gt;
#define MANL_TYPE(SortType) (SortType)&lt;br /&gt;
#define MANL_N_MATERIAL(nMaterial) (nMaterial)&lt;br /&gt;
#define MANL_NAMELIST(pMaterialNameList) (pMaterialNameList)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NNS_MATERIALNAME ==&lt;br /&gt;
The name of a single material.&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
struct NNS_MATERIALNAME&lt;br /&gt;
{&lt;br /&gt;
  // The index of the material, in the [pMatPtrList]&lt;br /&gt;
  // array in the corresponding NNS_OBJECT.&lt;br /&gt;
  int32_t iMaterial;&lt;br /&gt;
&lt;br /&gt;
  // The name of the material.&lt;br /&gt;
  const char* Name;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// Macros used by Text-Form files:&lt;br /&gt;
#define MATERIALNAME(iMaterial, Name) { iMaterial, Name }&lt;br /&gt;
#define MANM_IDX(iMaterial) (iMaterial)&lt;br /&gt;
#define MANM_NAME(Name) (Name)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>PTKay</name></author>
	</entry>
</feed>