| /NW4C-2.0.3/include/nw/gfx/ |
| D | gfx_ParticleShape.h | 181 bool IsVertexStream(int index) in IsVertexStream() argument 183 NW_ASSERT(index >= 0 && index < this->m_ResVertexAttributeDataCount); in IsVertexStream() 184 return this->m_VertexAttribute[index].m_IsStream; in IsVertexStream() 190 s32 GetVertexAttributeUsage(int index) in GetVertexAttributeUsage() argument 192 NW_ASSERT(index >= 0 && index < this->m_ResVertexAttributeDataCount); in GetVertexAttributeUsage() 193 return this->m_VertexAttribute[index].m_Usage; in GetVertexAttributeUsage() 199 u32 GetVertexAttributeFormatType(int index) in GetVertexAttributeFormatType() argument 201 NW_ASSERT(index >= 0 && index < this->m_ResVertexAttributeDataCount); in GetVertexAttributeFormatType() 202 return this->m_VertexAttribute[index].m_FormatType; in GetVertexAttributeFormatType() 208 u8 GetVertexAttributeDimension(int index) in GetVertexAttributeDimension() argument [all …]
|
| D | gfx_SceneEnvironment.h | 106 void SetFog(s32 index, Fog* fog) in SetFog() argument 108 NW_MINMAXLT_ASSERT(index, 0, m_Fogs.size()); in SetFog() 109 m_Fogs[index] = fog; in SetFog() 116 Fog* GetFog(s32 index) in GetFog() argument 118 NW_MINMAXLT_ASSERT(index, 0, m_Fogs.size()); in GetFog() 119 return m_Fogs[index]; in GetFog() 126 const Fog* GetFog(s32 index) const in GetFog() argument 128 NW_MINMAXLT_ASSERT(index, 0, m_Fogs.size()); in GetFog() 129 return m_Fogs[index]; in GetFog() 137 void SetCamera(int index, Camera* camera) in SetCamera() argument [all …]
|
| D | gfx_ShaderProgram.h | 200 void SetUniversal(int index, const math::VEC4& vec) const in SetUniversal() argument 202 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 1, vec); in SetUniversal() 210 void SetUniversal(int index, const math::MTX34& mtx) const in SetUniversal() argument 212 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 3, mtx); in SetUniversal() 220 void SetUniversal(int index, const math::MTX44& mtx) const in SetUniversal() argument 222 internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_UNIVREG_INDEX + index, 4, mtx); in SetUniversal() 434 void SetUserVertexUniform(s32 index, ResShaderParameterValue parameter) const in SetUserVertexUniform() argument 438 this->SetVertexUniformBool(index, parameter.GetValueBool()); in SetUserVertexUniform() 442 internal::NWSetVertexUniform1fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform() 446 internal::NWSetVertexUniform2fv(index, 1, parameter.GetValueF32()); in SetUserVertexUniform() [all …]
|
| D | gfx_Skeleton.h | 87 bool GetTransform(int index, Transform** transform) in GetTransform() argument 89 if (index < 0 || this->GetBonesCount() <= index) { return false; } in GetTransform() 90 *transform = &this->m_Transforms[index]; in GetTransform() 95 bool GetTransform(int index, const Transform** transform) const in GetTransform() argument 97 if (index < 0 || this->GetBonesCount() <= index) { return false; } in GetTransform() 98 *transform = &this->m_Transforms[index]; in GetTransform() 103 Transform* GetTransform(int index) in GetTransform() argument 105 return &this->m_Transforms[index]; in GetTransform() 109 const Transform* GetTransform(int index) const in GetTransform() argument 111 return &this->m_Transforms[index]; in GetTransform() [all …]
|
| D | gfx_ParticleModel.h | 271 ParticleSet* GetParticleSets(int index) in GetParticleSets() argument 273 NW_ASSERT(index >= 0 && index < m_ParticleSetCount); in GetParticleSets() 274 return this->m_ParticleSets[index]; in GetParticleSets() 281 const ParticleSet* GetParticleSets(int index) const in GetParticleSets() argument 283 NW_ASSERT(index >= 0 && index < m_ParticleSetCount); in GetParticleSets() 284 return this->m_ParticleSets[index]; in GetParticleSets() 310 ParticleShape* GetParticleShapes(int index) in GetParticleShapes() argument 312 NW_ASSERT(index >= 0 && index < m_ParticleShapeCount); in GetParticleShapes() 313 return this->m_ParticleShapes[index]; in GetParticleShapes() 320 const ParticleShape* GetParticleShapes(int index) const in GetParticleShapes() argument [all …]
|
| D | gfx_CommandUtil.h | 663 NWSetUniform4fv(u32 index, int count, const f32* data) in NWSetUniform4fv() argument 666 NW_LOG("Set Uniform 4fv: %d\n", index); in NWSetUniform4fv() 684 NW_MINMAX_ASSERT(index, 0, 96); in NWSetUniform4fv() 691 0x80000000 + index, in NWSetUniform4fv() 698 0x80000000 + index, in NWSetUniform4fv() 708 0x80000000 + index, in NWSetUniform4fv() 803 NWSetUniform3fv(u32 index, int count, const f32* data) in NWSetUniform3fv() argument 806 NW_LOG("Set Uniform 3fv: %d\n", index); in NWSetUniform3fv() 825 NW_MINMAX_ASSERT(index, 0, 96); in NWSetUniform3fv() 832 0x80000000 + index, in NWSetUniform3fv() [all …]
|
| D | gfx_GraphicsDevice.h | 387 static NW_INLINE bool GetFragmentLightPositionW(int index) in GetFragmentLightPositionW() argument 389 return ((s_LightPositionW >> index) & 0x1); in GetFragmentLightPositionW() 398 static NW_INLINE void SetFragmentLightPositionW(int index, bool isWZero) in SetFragmentLightPositionW() argument 403 s_LightPositionW |= (0x1 << index); in SetFragmentLightPositionW() 407 s_LightPositionW &= ~(0x1 << index); in SetFragmentLightPositionW() 417 static void SetFragmentLightShadowed(int index, bool shadowed) in SetFragmentLightShadowed() argument 422 s_LightShadowed &= ~(0x1 << index); in SetFragmentLightShadowed() 426 s_LightShadowed |= 0x1 << index; in SetFragmentLightShadowed() 436 static void SetFragmentLightSpotEnabled(int index, bool enabled) in SetFragmentLightSpotEnabled() argument 441 s_LightSpotEnabled &= ~(0x1 << index); in SetFragmentLightSpotEnabled() [all …]
|
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_SkeletonUpdater.cpp | 77 int index = 0; in UpdateWorld() local 83 …:MatrixPose::MatrixArray::iterator matrix = range.first; matrix != range.second; ++matrix, ++index) in UpdateWorld() 85 skeleton->PreCalculateMatrixSignal()(skeleton, index); in UpdateWorld() 88 …if (pose.GetTransform(index)->IsEnabledFlags(CalculatedTransform::FLAG_IS_WORLDMATRIX_CALCULATION_… in UpdateWorld() 90 ResBone bone = resSkeleton.GetBones(index); in UpdateWorld() 116 worldPose.GetTransform(index), in UpdateWorld() 117 *pose.GetTransform(index), in UpdateWorld() 123 skeleton->PostCalculateMatrixSignal()(skeleton, index); in UpdateWorld() 128 …:MatrixPose::MatrixArray::iterator matrix = range.first; matrix != range.second; ++matrix, ++index) in UpdateWorld() 130 skeleton->PreCalculateMatrixSignal()(skeleton, index); in UpdateWorld() [all …]
|
| D | gfx_ParticleSet.cpp | 110 u32 index = x * 360 + 360; 111 if (index < sizeof(acosTable)) 113 return acosTable[index]; 1031 int index = *pActiveIndex; in InitializeParticles() local 1034 storagePtr[index] = value; in InitializeParticles() 1054 int index = *pActiveIndex; in InitializeParticles() local 1057 storagePtr[index] = value; in InitializeParticles() 1079 int index = *pActiveIndex; in InitializeParticles() local 1082 storagePtr[index] = value; in InitializeParticles() 1104 int index = *pActiveIndex; in InitializeParticles() local [all …]
|
| D | gfx_RenderContext.cpp | 620 RenderContext::ActivateFragmentLight(int index, const FragmentLight* light) in ActivateFragmentLight() argument 641 GraphicsDevice::ActivateFragmentLightPosition(index, -direction); in ActivateFragmentLight() 642 GraphicsDevice::SetFragmentLightPositionW(index, (direction.w == 0.0f)); in ActivateFragmentLight() 644 GraphicsDevice::SetFragmentLightSpotEnabled(index, false); in ActivateFragmentLight() 645 GraphicsDevice::SetFragmentLightDistanceAttnEnabled(index, false); in ActivateFragmentLight() 649 GraphicsDevice::SetFragmentLightSpotEnabled(index, false); in ActivateFragmentLight() 654 GraphicsDevice::SetFragmentLightDistanceAttnEnabled(index, true); in ActivateFragmentLight() 655 …GraphicsDevice::ActivateFragmentLightDistanceAttnTable(index, resLight.GetDistanceSampler().Derefe… in ActivateFragmentLight() 658 index, in ActivateFragmentLight() 664 GraphicsDevice::SetFragmentLightDistanceAttnEnabled(index, false); in ActivateFragmentLight() [all …]
|
| /NW4C-2.0.3/sources/libraries/snd/ |
| D | snd_CurveLfo.cpp | 113 s8 CurveLfo::GetSinIdx( int index ) in GetSinIdx() argument 125 NW_MINMAXLT_ASSERT( index, 0, PERIOD ); in GetSinIdx() 127 if ( index < TABLE_SIZE ) in GetSinIdx() 129 return sinTable[ index ]; in GetSinIdx() 131 if ( index < TABLE_SIZE * 2 ) in GetSinIdx() 133 return sinTable[ TABLE_SIZE - ( index - TABLE_SIZE ) ]; in GetSinIdx() 135 if ( index < TABLE_SIZE * 3 ) in GetSinIdx() 137 return static_cast<s8>( - sinTable[ index - TABLE_SIZE * 2 ] ); in GetSinIdx() 139 return static_cast<s8>( - sinTable[ TABLE_SIZE - ( index - TABLE_SIZE * 3 ) ] ); in GetSinIdx()
|
| D | snd_BankFile.cpp | 90 const Util::Reference& GetRegionTableAddress( int index ) const in GetRegionTableAddress() 95 + sizeof(Util::Reference) * index ) ); in GetRegionTableAddress() 97 const void* GetRegion( u32 index ) const in GetRegion() 99 NW_ASSERT( index <= 127 ); in GetRegion() 105 if ( index <= borderTable.item[i] ) in GetRegion() 130 const void* GetRegion( u32 index ) const in GetRegion() 132 NW_WARNING( index >= min, "out of region value[%d] < min[%d]\n", index, min ); in GetRegion() 133 NW_WARNING( index <= max, "out of region value[%d] > max[%d]\n", index, max ); in GetRegion() 134 if ( index < min ) in GetRegion() 138 else if ( index > max ) in GetRegion() [all …]
|
| D | snd_SequenceSoundFile.cpp | 45 const SequenceSoundFile::LabelInfo* SequenceSoundFile::LabelBlockBody::GetLabelInfo( int index ) co… in GetLabelInfo() 47 NW_ASSERT( index < GetLabelCount() ); in GetLabelInfo() 50 labelInfoReferenceTable.GetReferedItem( index ) ); in GetLabelInfo() 53 const char* SequenceSoundFile::LabelBlockBody::GetLabel( int index ) const in GetLabel() 55 const LabelInfo* labelInfo = GetLabelInfo( index ); in GetLabel() 73 bool SequenceSoundFile::LabelBlockBody::GetOffset( int index, u32* offsetPtr ) const in GetOffset() argument 75 const LabelInfo* labelInfo = GetLabelInfo( index ); in GetOffset()
|
| D | snd_WaveSoundFileReader.cpp | 101 u32 WaveSoundFileReader::GetNoteInfoCount( u32 index ) const in GetNoteInfoCount() 104 NW_ASSERT( index < GetWaveSoundCount() ); in GetNoteInfoCount() 107 m_pInfoBlockBody->GetWaveSoundData( index ); in GetNoteInfoCount() 111 u32 WaveSoundFileReader::GetTrackInfoCount( u32 index ) const in GetTrackInfoCount() 114 NW_ASSERT( index < GetWaveSoundCount() ); in GetTrackInfoCount() 117 m_pInfoBlockBody->GetWaveSoundData( index ); in GetTrackInfoCount() 121 bool WaveSoundFileReader::ReadWaveSoundInfo( WaveSoundInfo* dst, u32 index ) const in ReadWaveSoundInfo() 127 m_pInfoBlockBody->GetWaveSoundData( index ).GetWaveSoundInfo(); in ReadWaveSoundInfo() 140 u32 index, in ReadNoteInfo() argument 147 m_pInfoBlockBody->GetWaveSoundData( index ).GetNoteInfo( noteIndex ); in ReadNoteInfo()
|
| D | snd_WaveSoundFile.cpp | 89 WaveSoundFile::InfoBlockBody::GetWaveSoundData( u32 index ) const in GetWaveSoundData() 91 NW_ASSERT( index < GetWaveSoundCount() ); in GetWaveSoundData() 94 index, in GetWaveSoundData() 141 WaveSoundFile::WaveSoundData::GetTrackInfo( u32 index ) const in GetTrackInfo() 143 NW_ASSERT( index < GetTrackCount() ); in GetTrackInfo() 147 index, in GetTrackInfo() 155 WaveSoundFile::WaveSoundData::GetNoteInfo( u32 index ) const in GetNoteInfo() 157 NW_ASSERT( index < GetNoteCount() ); in GetNoteInfo() 161 index, in GetNoteInfo() 246 WaveSoundFile::TrackInfo::GetNoteEvent( u32 index ) const in GetNoteEvent() [all …]
|
| /NW4C-2.0.3/sources/libraries/font/ |
| D | font_ResFontBase.cpp | 208 GlyphIndex index = FindGlyphIndex(c); in SetAlternateChar() local 210 if (index != GLYPH_INDEX_NOT_FOUND) in SetAlternateChar() 212 m_pFontInfo->alterCharIndex = index; in SetAlternateChar() 243 GlyphIndex index = GetGlyphIndex(c); in GetCharWidths() local 244 return GetCharWidthsFromIndex(index); in GetCharWidths() 250 GlyphIndex index = GetGlyphIndex(c); in GetGlyph() local 251 GetGlyphFromIndex(glyph, index); in GetGlyph() 286 GlyphIndex index = FindGlyphIndex(c); in GetGlyphIndex() local 287 return (index != GLYPH_INDEX_NOT_FOUND) ? index: m_pFontInfo->alterCharIndex; in GetGlyphIndex() 325 u16 index = GLYPH_INDEX_NOT_FOUND; in FindGlyphIndex() local [all …]
|
| /NW4C-2.0.3/demos/Nw4cDemo/include/ |
| D | SmParticle.h | 141 void detach( int index ) in detach() argument 143 if ( m_ParticleModelInstArray[index]->GetParent() ) in detach() 145 m_pParentNode->DetachChild( m_ParticleModelInstArray[index] ); in detach() 147 if ( m_ParticleEmitterInstArray[index]->GetParent() ) in detach() 149 m_pParentNode->DetachChild( m_ParticleEmitterInstArray[index] ); in detach() 153 void attach( int index ) in attach() argument 155 if ( !m_ParticleModelInstArray[index]->GetParent() ) in attach() 157 m_pParentNode->AttachChild( m_ParticleModelInstArray[index] ); in attach() 159 if ( !m_ParticleEmitterInstArray[index]->GetParent() ) in attach() 161 m_pParentNode->AttachChild( m_ParticleEmitterInstArray[index] ); in attach()
|
| /NW4C-2.0.3/include/nw/snd/ |
| D | snd_GroupFile.h | 59 const GroupItemInfo* GetGroupItemInfo( u32 index ) const in GetGroupItemInfo() 61 if ( index >= GetGroupItemInfoCount() ) in GetGroupItemInfo() 66 this, referenceTableOfGroupItemInfo.item[ index ].offset ) ); in GetGroupItemInfo() 74 const GroupItemInfo* GetItemInfo( u32 index ) const 76 if ( index > GetItemCount() ) 80 return &table.item[ index ]; 138 const GroupItemInfoEx* GetGroupItemInfoEx( u32 index ) const in GetGroupItemInfoEx() 140 if ( index >= GetGroupItemInfoExCount() ) in GetGroupItemInfoEx() 145 this, referenceTableOfGroupItemInfoEx.item[ index ].offset ) ); in GetGroupItemInfoEx()
|
| D | snd_Util.h | 157 const void* GetReferedItem( u32 index ) const in GetReferedItem() 159 if ( index >= count ) return NULL; in GetReferedItem() 160 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem() 162 const void* GetReferedItem( u32 index, u16 typeId ) const in GetReferedItem() 164 if ( index >= count ) return NULL; in GetReferedItem() 165 if ( item[ index ].typeId != typeId ) return NULL; in GetReferedItem() 166 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem() 183 const void* GetReferedItem( u32 index ) const in GetReferedItem() 185 NW_ASSERT( index < count ); in GetReferedItem() 186 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem() [all …]
|
| D | snd_WaveArchiveFile.h | 76 u32 GetSize( u32 index ) const in GetSize() 78 NW_ASSERT( index < GetWaveFileCount() ); in GetSize() 79 return table.item[ index ].size; in GetSize() 81 u32 GetOffsetFromFileBlockBody( u32 index ) const in GetOffsetFromFileBlockBody() 83 NW_ASSERT( index < GetWaveFileCount() ); in GetOffsetFromFileBlockBody() 84 return table.item[ index ].offset; in GetOffsetFromFileBlockBody()
|
| D | snd_SoundArchive.h | 280 u32 index; // ウェーブサウンドセットファイル (bcwsd) 内で何番目か member 673 static ItemId GetSoundIdFromIndex( u32 index ) in GetSoundIdFromIndex() argument 675 return internal::Util::GetMaskedItemId( index, internal::ItemType_Sound ); in GetSoundIdFromIndex() 698 static ItemId GetSoundGroupIdFromIndex( u32 index ) in GetSoundGroupIdFromIndex() argument 700 return internal::Util::GetMaskedItemId( index, internal::ItemType_SoundGroup ); in GetSoundGroupIdFromIndex() 720 static ItemId GetBankIdFromIndex( u32 index ) in GetBankIdFromIndex() argument 722 return internal::Util::GetMaskedItemId( index, internal::ItemType_Bank ); in GetBankIdFromIndex() 742 static ItemId GetPlayerIdFromIndex( u32 index ) in GetPlayerIdFromIndex() argument 744 return internal::Util::GetMaskedItemId( index, internal::ItemType_Player ); in GetPlayerIdFromIndex() 764 static ItemId GetWaveArchiveIdFromIndex( u32 index ) in GetWaveArchiveIdFromIndex() argument [all …]
|
| /NW4C-2.0.3/include/nw/gfx/res/ |
| D | gfx_ResFragmentShader.h | 912 Source GetSourceRgb(s32 index) const in GetSourceRgb() argument 914 NW_MINMAX_ASSERT( index, 0, 2 ); in GetSourceRgb() 917 return (Source)internal::GetCmdValue( ref().m_CmdSource, CMD_MASK, CMD_WIDTH * index ); in GetSourceRgb() 926 void SetSourceRgb(s32 index, Source value) in SetSourceRgb() argument 928 NW_MINMAX_ASSERT( index, 0, 2 ); in SetSourceRgb() 932 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index ); in SetSourceRgb() 942 Source GetSourceAlpha(s32 index) const in GetSourceAlpha() argument 944 NW_MINMAX_ASSERT( index, 0, 2 ); in GetSourceAlpha() 948 …return (Source)internal::GetCmdValue( ref().m_CmdSource, CMD_MASK, CMD_WIDTH * index + CMD_SHIFT ); in GetSourceAlpha() 957 void SetSourceAlpha(s32 index, Source value) in SetSourceAlpha() argument [all …]
|
| /NW4C-2.0.3/include/nw/lyt/ |
| D | lyt_Common.h | 95 GetStrTableStr(const void* pStrTable, int index) in GetStrTableStr() argument 100 return &stringPool[offsets[index]]; in GetStrTableStr() 248 static void SetTextureSamplerType(GraphicsResource& graphicsResource, int index, int value); 249 static void SetTevCombineRgb(GraphicsResource& graphicsResource, int index, TevMode value); 250 static void SetTevCombineAlpha(GraphicsResource& graphicsResource, int index, TevMode value); 251 …static void SetTevSrcRgb(GraphicsResource& graphicsResource, int index, TevSrc value0, TevSrc valu… 252 …static void SetTevSrcAlpha(GraphicsResource& graphicsResource, int index, TevSrc value0, TevSrc va… 253 …static void SetTevOperandRgb(GraphicsResource& graphicsResource, int index, TevOpRgb value0, TevOp… 254 …static void SetTevOperandAlpha(GraphicsResource& graphicsResource, int index, TevOpAlp value0, Tev… 255 static void SetTevScaleRgb(GraphicsResource& graphicsResource, int index, TevScale value); [all …]
|
| /NW4C-2.0.3/include/nw/font/ |
| D | font_PackedFont.h | 293 void Use(int index); 299 void Unuse(int index); 305 void Lock(int index); 311 void Unlock(int index); 315 bool IsLocked(int index) const in IsLocked() argument 317 const OrderNode& node = GetNode(index); in IsLocked() 348 OrderNode& GetNode(int index) { return mpOrderNodeArray[index]; } in GetNode() argument 350 const OrderNode& GetNode(int index) const { return mpOrderNodeArray[index]; } in GetNode() argument 419 int CalcSheetIndex(GlyphIndex index) const;
|
| /NW4C-2.0.3/tools/DccPlugin/Maya/scripts/ |
| D | NW4C_SetUserData.mel | 40 global proc string nw4cSetUserData_Get_UserDataValue(string $node, int $index) 43 $index >= nw4cSetUserData_Get_UserDataSize($node)) 47 string $val = `getAttr ($node + ".nw4cUserData[" + $index + "]")`; 59 global proc nw4cSetUserData_Set_UserDataValue(string $node, int $index, string $val) 62 setAttr -typ "string" ($node + ".nw4cUserData[" + $index + "]") $val; 63 //trace ("set: " + $node + ".data[" + $index + "] = " + $val); 70 for ($index = 0; $index < $size; ++$index) 72 $values[$index] = nw4cSetUserData_Get_UserDataValue($node, $index); 84 int $index; 85 for ($index = 0; $index < $dataSize; ++$index) [all …]
|