Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 97) sorted by relevance

1234

/NW4C-1.3.3/include/nw/gfx/
Dgfx_ParticleShape.h179 bool IsVertexStream(int index) in IsVertexStream() argument
181 NW_ASSERT(index >= 0 && index < this->m_ResVertexAttributeDataCount); in IsVertexStream()
182 return this->m_VertexAttribute[index].m_IsStream; in IsVertexStream()
188 s32 GetVertexAttributeUsage(int index) in GetVertexAttributeUsage() argument
190 NW_ASSERT(index >= 0 && index < this->m_ResVertexAttributeDataCount); in GetVertexAttributeUsage()
191 return this->m_VertexAttribute[index].m_Usage; in GetVertexAttributeUsage()
197 u32 GetVertexAttributeFormatType(int index) in GetVertexAttributeFormatType() argument
199 NW_ASSERT(index >= 0 && index < this->m_ResVertexAttributeDataCount); in GetVertexAttributeFormatType()
200 return this->m_VertexAttribute[index].m_FormatType; in GetVertexAttributeFormatType()
206 u8 GetVertexAttributeDimension(int index) in GetVertexAttributeDimension() argument
[all …]
Dgfx_SceneEnvironment.h104 void SetFog(s32 index, Fog* fog) in SetFog() argument
106 NW_MINMAXLT_ASSERT(index, 0, m_Fogs.size()); in SetFog()
107 m_Fogs[index] = fog; in SetFog()
114 Fog* GetFog(s32 index) in GetFog() argument
116 NW_MINMAXLT_ASSERT(index, 0, m_Fogs.size()); in GetFog()
117 return m_Fogs[index]; in GetFog()
124 const Fog* GetFog(s32 index) const in GetFog() argument
126 NW_MINMAXLT_ASSERT(index, 0, m_Fogs.size()); in GetFog()
127 return m_Fogs[index]; in GetFog()
135 void SetCamera(int index, Camera* camera) in SetCamera() argument
[all …]
Dgfx_ShaderProgram.h198 void SetUniversal(int index, const math::VEC4& vec) const in SetUniversal() argument
200 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 1, vec); in SetUniversal()
208 void SetUniversal(int index, const math::MTX34& mtx) const in SetUniversal() argument
210 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 3, mtx); in SetUniversal()
218 void SetUniversal(int index, const math::MTX44& mtx) const in SetUniversal() argument
220 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 4, mtx); in SetUniversal()
432 void SetUserVertexUniform(s32 index, ResShaderParameterValue parameter) const in SetUserVertexUniform() argument
436 this->SetVertexUniformBool(index, parameter.GetValueBool()); in SetUserVertexUniform()
440 internal::NWSetVertexUniform1fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform()
444 internal::NWSetVertexUniform2fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform()
[all …]
Dgfx_Skeleton.h85 bool GetTransform(int index, Transform** transform) in GetTransform() argument
87 if (index < 0 || this->GetBonesCount() <= index) { return false; } in GetTransform()
88 *transform = &this->m_Transforms[index]; in GetTransform()
93 bool GetTransform(int index, const Transform** transform) const in GetTransform() argument
95 if (index < 0 || this->GetBonesCount() <= index) { return false; } in GetTransform()
96 *transform = &this->m_Transforms[index]; in GetTransform()
101 Transform* GetTransform(int index) in GetTransform() argument
103 return &this->m_Transforms[index]; in GetTransform()
107 const Transform* GetTransform(int index) const in GetTransform() argument
109 return &this->m_Transforms[index]; in GetTransform()
[all …]
Dgfx_ParticleModel.h252 ParticleSet* GetParticleSets(int index) in GetParticleSets() argument
254 NW_ASSERT(index >= 0 && index < m_ParticleSetCount); in GetParticleSets()
255 return this->m_ParticleSets[index]; in GetParticleSets()
262 const ParticleSet* GetParticleSets(int index) const in GetParticleSets() argument
264 NW_ASSERT(index >= 0 && index < m_ParticleSetCount); in GetParticleSets()
265 return this->m_ParticleSets[index]; in GetParticleSets()
291 ParticleShape* GetParticleShapes(int index) in GetParticleShapes() argument
293 NW_ASSERT(index >= 0 && index < m_ParticleShapeCount); in GetParticleShapes()
294 return this->m_ParticleShapes[index]; in GetParticleShapes()
301 const ParticleShape* GetParticleShapes(int index) const in GetParticleShapes() argument
[all …]
Dgfx_CommandUtil.h661 NWSetUniform4fv(u32 index, int count, const f32* data) in NWSetUniform4fv() argument
664 NW_LOG("Set Uniform 4fv: %d\n", index); in NWSetUniform4fv()
682 NW_MINMAX_ASSERT(index, 0, 96); in NWSetUniform4fv()
689 0x80000000 + index, in NWSetUniform4fv()
696 0x80000000 + index, in NWSetUniform4fv()
706 0x80000000 + index, in NWSetUniform4fv()
801 NWSetUniform3fv(u32 index, int count, const f32* data) in NWSetUniform3fv() argument
804 NW_LOG("Set Uniform 3fv: %d\n", index); in NWSetUniform3fv()
823 NW_MINMAX_ASSERT(index, 0, 96); in NWSetUniform3fv()
830 0x80000000 + index, in NWSetUniform3fv()
[all …]
Dgfx_GraphicsDevice.h385 static NW_INLINE bool GetFragmentLightPositionW(int index) in GetFragmentLightPositionW() argument
387 return ((s_LightPositionW >> index) & 0x1); in GetFragmentLightPositionW()
396 static NW_INLINE void SetFragmentLightPositionW(int index, bool isWZero) in SetFragmentLightPositionW() argument
401 s_LightPositionW |= (0x1 << index); in SetFragmentLightPositionW()
405 s_LightPositionW &= ~(0x1 << index); in SetFragmentLightPositionW()
415 static void SetFragmentLightShadowed(int index, bool shadowed) in SetFragmentLightShadowed() argument
420 s_LightShadowed &= ~(0x1 << index); in SetFragmentLightShadowed()
424 s_LightShadowed |= 0x1 << index; in SetFragmentLightShadowed()
434 static void SetFragmentLightSpotEnabled(int index, bool enabled) in SetFragmentLightSpotEnabled() argument
439 s_LightSpotEnabled &= ~(0x1 << index); in SetFragmentLightSpotEnabled()
[all …]
/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_SkeletonUpdater.cpp75 int index = 0; in UpdateWorld() local
81 …:MatrixPose::MatrixArray::iterator matrix = range.first; matrix != range.second; ++matrix, ++index) in UpdateWorld()
83 skeleton->PreCalculateMatrixSignal()(skeleton, index); in UpdateWorld()
86 …if (pose.GetTransform(index)->IsEnabledFlags(CalculatedTransform::FLAG_IS_WORLDMATRIX_CALCULATION_… in UpdateWorld()
88 ResBone bone = resSkeleton.GetBones(index); in UpdateWorld()
114 worldPose.GetTransform(index), in UpdateWorld()
115 *pose.GetTransform(index), in UpdateWorld()
121 skeleton->PostCalculateMatrixSignal()(skeleton, index); in UpdateWorld()
126 …:MatrixPose::MatrixArray::iterator matrix = range.first; matrix != range.second; ++matrix, ++index) in UpdateWorld()
128 skeleton->PreCalculateMatrixSignal()(skeleton, index); in UpdateWorld()
[all …]
Dgfx_ParticleSet.cpp108 u32 index = x * 360 + 360;
109 if (index < sizeof(acosTable))
111 return acosTable[index];
1017 int index = *pActiveIndex; in InitializeParticles() local
1020 storagePtr[index] = value; in InitializeParticles()
1040 int index = *pActiveIndex; in InitializeParticles() local
1043 storagePtr[index] = value; in InitializeParticles()
1065 int index = *pActiveIndex; in InitializeParticles() local
1068 storagePtr[index] = value; in InitializeParticles()
1090 int index = *pActiveIndex; in InitializeParticles() local
[all …]
Dgfx_RenderContext.cpp618 RenderContext::ActivateFragmentLight(int index, const FragmentLight* light) in ActivateFragmentLight() argument
639 GraphicsDevice::ActivateFragmentLightPosition(index, -direction); in ActivateFragmentLight()
640 GraphicsDevice::SetFragmentLightPositionW(index, (direction.w == 0.0f)); in ActivateFragmentLight()
642 GraphicsDevice::SetFragmentLightSpotEnabled(index, false); in ActivateFragmentLight()
643 GraphicsDevice::SetFragmentLightDistanceAttnEnabled(index, false); in ActivateFragmentLight()
647 GraphicsDevice::SetFragmentLightSpotEnabled(index, false); in ActivateFragmentLight()
652 GraphicsDevice::SetFragmentLightDistanceAttnEnabled(index, true); in ActivateFragmentLight()
653 …GraphicsDevice::ActivateFragmentLightDistanceAttnTable(index, resLight.GetDistanceSampler().Derefe… in ActivateFragmentLight()
656 index, in ActivateFragmentLight()
662 GraphicsDevice::SetFragmentLightDistanceAttnEnabled(index, false); in ActivateFragmentLight()
[all …]
Dgfx_SceneEnvironment.cpp39 int cameraIndex = (*cameraBinder).index; in ApplyFrom()
51 int fogIndex = (*fogBinder).index; in ApplyFrom()
63 int lightSetIndex = (*lightSetBinder).index; in ApplyFrom()
154 SceneEnvironment::SetActiveLightSet(int index) in SetActiveLightSet() argument
156 NW_MINMAX_ASSERT(index, 0, m_LightSets.size()); in SetActiveLightSet()
157 LightSet* lightSet = this->m_LightSets[index]; in SetActiveLightSet()
161 if ((lightSet != NULL) && (m_LightSetIndex != index)) in SetActiveLightSet()
163 m_LightSetIndex = index; in SetActiveLightSet()
/NW4C-1.3.3/sources/libraries/snd/
Dsnd_CurveLfo.cpp111 s8 CurveLfo::GetSinIdx( int index ) in GetSinIdx() argument
123 NW_MINMAXLT_ASSERT( index, 0, PERIOD ); in GetSinIdx()
125 if ( index < TABLE_SIZE ) in GetSinIdx()
127 return sinTable[ index ]; in GetSinIdx()
129 if ( index < TABLE_SIZE * 2 ) in GetSinIdx()
131 return sinTable[ TABLE_SIZE - ( index - TABLE_SIZE ) ]; in GetSinIdx()
133 if ( index < TABLE_SIZE * 3 ) in GetSinIdx()
135 return static_cast<s8>( - sinTable[ index - TABLE_SIZE * 2 ] ); in GetSinIdx()
137 return static_cast<s8>( - sinTable[ TABLE_SIZE - ( index - TABLE_SIZE * 3 ) ] ); in GetSinIdx()
Dsnd_BankFile.cpp88 const Util::Reference& GetRegionTableAddress( int index ) const in GetRegionTableAddress()
93 + sizeof(Util::Reference) * index ) ); in GetRegionTableAddress()
95 const void* GetRegion( u32 index ) const in GetRegion()
97 NW_ASSERT( index <= 127 ); in GetRegion()
103 if ( index <= borderTable.item[i] ) in GetRegion()
128 const void* GetRegion( u32 index ) const in GetRegion()
130 NW_WARNING( index >= min, "out of region value[%d] < min[%d]\n", index, min ); in GetRegion()
131 NW_WARNING( index <= max, "out of region value[%d] > max[%d]\n", index, max ); in GetRegion()
132 if ( index < min ) in GetRegion()
136 else if ( index > max ) in GetRegion()
[all …]
Dsnd_SequenceSoundFile.cpp43 const SequenceSoundFile::LabelInfo* SequenceSoundFile::LabelBlockBody::GetLabelInfo( int index ) co… in GetLabelInfo()
45 NW_ASSERT( index < GetLabelCount() ); in GetLabelInfo()
48 labelInfoReferenceTable.GetReferedItem( index ) ); in GetLabelInfo()
51 const char* SequenceSoundFile::LabelBlockBody::GetLabel( int index ) const in GetLabel()
53 const LabelInfo* labelInfo = GetLabelInfo( index ); in GetLabel()
71 bool SequenceSoundFile::LabelBlockBody::GetOffset( int index, u32* offsetPtr ) const in GetOffset() argument
73 const LabelInfo* labelInfo = GetLabelInfo( index ); in GetOffset()
Dsnd_WaveSoundFileReader.cpp99 u32 WaveSoundFileReader::GetNoteInfoCount( u32 index ) const in GetNoteInfoCount()
102 NW_ASSERT( index < GetWaveSoundCount() ); in GetNoteInfoCount()
105 m_pInfoBlockBody->GetWaveSoundData( index ); in GetNoteInfoCount()
109 u32 WaveSoundFileReader::GetTrackInfoCount( u32 index ) const in GetTrackInfoCount()
112 NW_ASSERT( index < GetWaveSoundCount() ); in GetTrackInfoCount()
115 m_pInfoBlockBody->GetWaveSoundData( index ); in GetTrackInfoCount()
119 bool WaveSoundFileReader::ReadWaveSoundInfo( WaveSoundInfo* dst, u32 index ) const in ReadWaveSoundInfo()
125 m_pInfoBlockBody->GetWaveSoundData( index ).GetWaveSoundInfo(); in ReadWaveSoundInfo()
138 u32 index, in ReadNoteInfo() argument
145 m_pInfoBlockBody->GetWaveSoundData( index ).GetNoteInfo( noteIndex ); in ReadNoteInfo()
/NW4C-1.3.3/sources/libraries/font/
Dfont_ResFontBase.cpp206 GlyphIndex index = FindGlyphIndex(c); in SetAlternateChar() local
208 if (index != GLYPH_INDEX_NOT_FOUND) in SetAlternateChar()
210 m_pFontInfo->alterCharIndex = index; in SetAlternateChar()
241 GlyphIndex index = GetGlyphIndex(c); in GetCharWidths() local
242 return GetCharWidthsFromIndex(index); in GetCharWidths()
248 GlyphIndex index = GetGlyphIndex(c); in GetGlyph() local
249 GetGlyphFromIndex(glyph, index); in GetGlyph()
284 GlyphIndex index = FindGlyphIndex(c); in GetGlyphIndex() local
285 return (index != GLYPH_INDEX_NOT_FOUND) ? index: m_pFontInfo->alterCharIndex; in GetGlyphIndex()
323 u16 index = GLYPH_INDEX_NOT_FOUND; in FindGlyphIndex() local
[all …]
/NW4C-1.3.3/demos/Nw4cDemo/include/
DSmParticle.h139 void detach( int index ) in detach() argument
141 if ( m_ParticleModelInstArray[index]->GetParent() ) in detach()
143 m_pParentNode->DetachChild( m_ParticleModelInstArray[index] ); in detach()
145 if ( m_ParticleEmitterInstArray[index]->GetParent() ) in detach()
147 m_pParentNode->DetachChild( m_ParticleEmitterInstArray[index] ); in detach()
151 void attach( int index ) in attach() argument
153 if ( !m_ParticleModelInstArray[index]->GetParent() ) in attach()
155 m_pParentNode->AttachChild( m_ParticleModelInstArray[index] ); in attach()
157 if ( !m_ParticleEmitterInstArray[index]->GetParent() ) in attach()
159 m_pParentNode->AttachChild( m_ParticleEmitterInstArray[index] ); in attach()
/NW4C-1.3.3/include/nw/snd/
Dsnd_GroupFile.h57 const GroupItemInfo* GetGroupItemInfo( u32 index ) const in GetGroupItemInfo()
59 if ( index >= GetGroupItemInfoCount() ) in GetGroupItemInfo()
64 this, referenceTableOfGroupItemInfo.item[ index ].offset ) ); in GetGroupItemInfo()
72 const GroupItemInfo* GetItemInfo( u32 index ) const
74 if ( index > GetItemCount() )
78 return &table.item[ index ];
136 const GroupItemInfoEx* GetGroupItemInfoEx( u32 index ) const in GetGroupItemInfoEx()
138 if ( index >= GetGroupItemInfoExCount() ) in GetGroupItemInfoEx()
143 this, referenceTableOfGroupItemInfoEx.item[ index ].offset ) ); in GetGroupItemInfoEx()
Dsnd_Util.h155 const void* GetReferedItem( u32 index ) const in GetReferedItem()
157 if ( index >= count ) return NULL; in GetReferedItem()
158 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem()
160 const void* GetReferedItem( u32 index, u16 typeId ) const in GetReferedItem()
162 if ( index >= count ) return NULL; in GetReferedItem()
163 if ( item[ index ].typeId != typeId ) return NULL; in GetReferedItem()
164 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem()
181 const void* GetReferedItem( u32 index ) const in GetReferedItem()
183 NW_ASSERT( index < count ); in GetReferedItem()
184 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem()
[all …]
Dsnd_WaveArchiveFile.h74 u32 GetSize( u32 index ) const in GetSize()
76 NW_ASSERT( index < GetWaveFileCount() ); in GetSize()
77 return table.item[ index ].size; in GetSize()
79 u32 GetOffsetFromFileBlockBody( u32 index ) const in GetOffsetFromFileBlockBody()
81 NW_ASSERT( index < GetWaveFileCount() ); in GetOffsetFromFileBlockBody()
82 return table.item[ index ].offset; in GetOffsetFromFileBlockBody()
Dsnd_SoundArchive.h278 u32 index; // ウェーブサウンドセットファイル (bcwsd) 内で何番目か member
649 static ItemId GetSoundIdFromIndex( u32 index ) in GetSoundIdFromIndex() argument
651 return internal::Util::GetMaskedItemId( index, internal::ItemType_Sound ); in GetSoundIdFromIndex()
674 static ItemId GetSoundGroupIdFromIndex( u32 index ) in GetSoundGroupIdFromIndex() argument
676 return internal::Util::GetMaskedItemId( index, internal::ItemType_SoundGroup ); in GetSoundGroupIdFromIndex()
696 static ItemId GetBankIdFromIndex( u32 index ) in GetBankIdFromIndex() argument
698 return internal::Util::GetMaskedItemId( index, internal::ItemType_Bank ); in GetBankIdFromIndex()
718 static ItemId GetPlayerIdFromIndex( u32 index ) in GetPlayerIdFromIndex() argument
720 return internal::Util::GetMaskedItemId( index, internal::ItemType_Player ); in GetPlayerIdFromIndex()
740 static ItemId GetWaveArchiveIdFromIndex( u32 index ) in GetWaveArchiveIdFromIndex() argument
[all …]
/NW4C-1.3.3/include/nw/gfx/res/
Dgfx_ResFragmentShader.h853 Source GetSourceRgb(s32 index) const in GetSourceRgb() argument
855 NW_MINMAX_ASSERT( index, 0, 2 ); in GetSourceRgb()
858 return (Source)internal::GetCmdValue( ref().m_CmdSource, CMD_MASK, CMD_WIDTH * index ); in GetSourceRgb()
867 void SetSourceRgb(s32 index, Source value) in SetSourceRgb() argument
869 NW_MINMAX_ASSERT( index, 0, 2 ); in SetSourceRgb()
873 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index ); in SetSourceRgb()
883 Source GetSourceAlpha(s32 index) const in GetSourceAlpha() argument
885 NW_MINMAX_ASSERT( index, 0, 2 ); in GetSourceAlpha()
889 …return (Source)internal::GetCmdValue( ref().m_CmdSource, CMD_MASK, CMD_WIDTH * index + CMD_SHIFT ); in GetSourceAlpha()
898 void SetSourceAlpha(s32 index, Source value) in SetSourceAlpha() argument
[all …]
/NW4C-1.3.3/include/nw/lyt/
Dlyt_Common.h93 GetStrTableStr(const void* pStrTable, int index) in GetStrTableStr() argument
98 return &stringPool[offsets[index]]; in GetStrTableStr()
246 static void SetTextureSamplerType(GraphicsResource& graphicsResource, int index, int value);
247 static void SetTevCombineRgb(GraphicsResource& graphicsResource, int index, TevMode value);
248 static void SetTevCombineAlpha(GraphicsResource& graphicsResource, int index, TevMode value);
249 …static void SetTevSrcRgb(GraphicsResource& graphicsResource, int index, TevSrc value0, TevSrc valu…
250 …static void SetTevSrcAlpha(GraphicsResource& graphicsResource, int index, TevSrc value0, TevSrc va…
251 …static void SetTevOperandRgb(GraphicsResource& graphicsResource, int index, TevOpRgb value0, TevOp…
252 …static void SetTevOperandAlpha(GraphicsResource& graphicsResource, int index, TevOpAlp value0, Tev…
253 static void SetTevScaleRgb(GraphicsResource& graphicsResource, int index, TevScale value);
[all …]
/NW4C-1.3.3/include/nw/font/
Dfont_PackedFont.h291 void Use(int index);
297 void Unuse(int index);
303 void Lock(int index);
309 void Unlock(int index);
313 bool IsLocked(int index) const in IsLocked() argument
315 const OrderNode& node = GetNode(index); in IsLocked()
346 OrderNode& GetNode(int index) { return mpOrderNodeArray[index]; } in GetNode() argument
348 const OrderNode& GetNode(int index) const { return mpOrderNodeArray[index]; } in GetNode() argument
417 int CalcSheetIndex(GlyphIndex index) const;
/NW4C-1.3.3/tools/DccPlugin/Maya/scripts/
DNW4C_SetUserData.mel41 global proc string nw4cSetUserData_Get_UserDataValue(string $node, int $index)
44 $index >= nw4cSetUserData_Get_UserDataSize($node))
48 string $val = `getAttr ($node + ".nw4cUserData[" + $index + "]")`;
60 global proc nw4cSetUserData_Set_UserDataValue(string $node, int $index, string $val)
63 setAttr -typ "string" ($node + ".nw4cUserData[" + $index + "]") $val;
64 //trace ("set: " + $node + ".data[" + $index + "] = " + $val);
71 for ($index = 0; $index < $size; ++$index)
73 $values[$index] = nw4cSetUserData_Get_UserDataValue($node, $index);
85 int $index;
86 for ($index = 0; $index < $dataSize; ++$index)
[all …]

1234