Skip to content

Commit

Permalink
Fixed error MSB3491: Could not write lines to file "Tutorial_Hlms05_C…
Browse files Browse the repository at this point in the history
…ustomizationPerObjArbitraryData.dir\Debug\Tutorial.6235AE06.tlog\Tutorial_Hlms05_CustomizationPerObjArbitraryData.lastbuildstate". Path: Tutorial_Hlms05_CustomizationPerObjArbitraryData.dir\Debug\Tutorial.6235AE06.tlog\Tutorial_Hlms05_CustomizationPerObjArbitraryData.lastbuildstate exceeds the OS max path limit. The fully qualified file name must be less than 260 characters.
  • Loading branch information
Eugene Golushkov authored and eugenegff committed Nov 7, 2024
1 parent aca39b7 commit 9a66c04
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Samples/2.0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ if( OGRE_BUILD_SAMPLES2 AND NOT OGRE_BUILD_SAMPLES2_SKIP )
add_subdirectory(Tutorials/Tutorial_Hlms02_CustomizationPerObj)
add_subdirectory(Tutorials/Tutorial_Hlms03_AlwaysOnTopA)
add_subdirectory(Tutorials/Tutorial_Hlms04_AlwaysOnTopB)
add_subdirectory(Tutorials/Tutorial_Hlms05_CustomizationPerObjArbitraryData)
add_subdirectory(Tutorials/Tutorial_Hlms05_CustomizationPerObjData)
if( OGRE_BUILD_COMPONENT_SCENE_FORMAT )
add_subdirectory(Tutorials/Tutorial_Memory)
endif()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ ogre_add_component_include_dir(Hlms/Pbs)

add_recursive( ./ SOURCE_FILES )

ogre_add_executable(Tutorial_Hlms05_CustomizationPerObjArbitraryData WIN32 MACOSX_BUNDLE ${SOURCE_FILES} ${SAMPLE_COMMON_RESOURCES})
ogre_add_executable(Tutorial_Hlms05_CustomizationPerObjData WIN32 MACOSX_BUNDLE ${SOURCE_FILES} ${SAMPLE_COMMON_RESOURCES})

target_link_libraries(Tutorial_Hlms05_CustomizationPerObjArbitraryData ${OGRE_LIBRARIES} ${OGRE_SAMPLES_LIBRARIES})
ogre_config_sample_lib(Tutorial_Hlms05_CustomizationPerObjArbitraryData)
ogre_config_sample_pkg(Tutorial_Hlms05_CustomizationPerObjArbitraryData)
target_link_libraries(Tutorial_Hlms05_CustomizationPerObjData ${OGRE_LIBRARIES} ${OGRE_SAMPLES_LIBRARIES})
ogre_config_sample_lib(Tutorial_Hlms05_CustomizationPerObjData)
ogre_config_sample_pkg(Tutorial_Hlms05_CustomizationPerObjData)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include "Tutorial_Hlms05_CustomizationPerObjArbitraryData.h"
#include "Tutorial_Hlms05_CustomizationPerObjData.h"

#include "Tutorial_Hlms05_CustomizationPerObjArbitraryDataGameState.h"
#include "Tutorial_Hlms05_CustomizationPerObjDataGameState.h"

// Declares WinMain / main
#include "MainEntryPointHelper.h"
Expand All @@ -25,9 +25,9 @@ namespace Demo
GraphicsSystem **outGraphicsSystem,
GameState **outLogicGameState, LogicSystem **outLogicSystem )
{
Hlms05CustomizationPerObjArbitraryDataGameState *gfxGameState =
new Hlms05CustomizationPerObjArbitraryDataGameState(
"Tutorial_Hlms02_CustomizationPerObj showed how to show send a custom colour.\n"
Hlms05CustomizationPerObjDataGameState *gfxGameState =
new Hlms05CustomizationPerObjDataGameState(
"Tutorial_Hlms05_CustomizationPerObjData showed how to show send a custom colour.\n"
"However such sample forces all customized objects to share the same colour\n"
"(or at most, a limited number of multiple colours).\n"
"\n"
Expand All @@ -53,10 +53,9 @@ namespace Demo
"\n"
"\n"
"This sample depends on the media files:\n"
" * Samples/Media/2.0/materials/Tutorial_Hlms05_CustomizationPerObjArbitraryData\n" );
" * Samples/Media/2.0/materials/Tutorial_Hlms05_CustomizationPerObjData\n" );

GraphicsSystem *graphicsSystem =
new Hlms05CustomizationPerObjArbitraryDataGraphicsSystem( gfxGameState );
GraphicsSystem *graphicsSystem = new Hlms05CustomizationPerObjDataGraphicsSystem( gfxGameState );

gfxGameState->_notifyGraphicsSystem( graphicsSystem );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#ifndef Demo_Tutorial_Hlms05_CustomizationPerObjArbitraryData_H
#define Demo_Tutorial_Hlms05_CustomizationPerObjArbitraryData_H
#ifndef Demo_Tutorial_Hlms05_CustomizationPerObjData_H
#define Demo_Tutorial_Hlms05_CustomizationPerObjData_H

#include "GraphicsSystem.h"

Expand All @@ -20,7 +20,7 @@

namespace Demo
{
class Hlms05CustomizationPerObjArbitraryDataGraphicsSystem final : public GraphicsSystem
class Hlms05CustomizationPerObjDataGraphicsSystem final : public GraphicsSystem
{
Ogre::CompositorWorkspace *setupCompositor() override
{
Expand Down Expand Up @@ -110,8 +110,7 @@ namespace Demo
// The order in which we push to archivePbsLibraryFolders DOES matter
// since script order parsing matters.
Ogre::Archive *archiveLibrary = archiveManager.load(
rootHlmsFolder +
"2.0/scripts/materials/Tutorial_Hlms05_CustomizationPerObjArbitraryData",
rootHlmsFolder + "2.0/scripts/materials/Tutorial_Hlms05_CustomizationPerObjData",
archiveType, true );
archivePbsLibraryFolders.push_back( archiveLibrary );
}
Expand All @@ -137,8 +136,7 @@ namespace Demo
}

public:
Hlms05CustomizationPerObjArbitraryDataGraphicsSystem( GameState *gameState ) :
GraphicsSystem( gameState )
Hlms05CustomizationPerObjDataGraphicsSystem( GameState *gameState ) : GraphicsSystem( gameState )
{
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include "Tutorial_Hlms05_CustomizationPerObjArbitraryDataGameState.h"
#include "Tutorial_Hlms05_CustomizationPerObjDataGameState.h"

#include "Tutorial_Hlms05_CustomizationPerObjArbitraryData.h"
#include "Tutorial_Hlms05_CustomizationPerObjData.h"
#include "Tutorial_Hlms05_MyHlmsPbs.h"

#include "CameraController.h"
Expand All @@ -23,13 +23,13 @@

using namespace Demo;

Hlms05CustomizationPerObjArbitraryDataGameState::Hlms05CustomizationPerObjArbitraryDataGameState(
Hlms05CustomizationPerObjDataGameState::Hlms05CustomizationPerObjDataGameState(
const Ogre::String &helpDescription ) :
TutorialGameState( helpDescription )
{
}
//-----------------------------------------------------------------------------
void Hlms05CustomizationPerObjArbitraryDataGameState::createScene01()
void Hlms05CustomizationPerObjDataGameState::createScene01()
{
Ogre::SceneManager *sceneManager = mGraphicsSystem->getSceneManager();

Expand Down Expand Up @@ -153,7 +153,7 @@ void Hlms05CustomizationPerObjArbitraryDataGameState::createScene01()
TutorialGameState::createScene01();
}
//-----------------------------------------------------------------------------
void Hlms05CustomizationPerObjArbitraryDataGameState::update( float timeSinceLast )
void Hlms05CustomizationPerObjDataGameState::update( float timeSinceLast )
{
for( Ogre::Item *item : mChangingItems )
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

#ifndef Demo_Hlms05CustomizationPerObjDataGameState_H
#define Demo_Hlms05CustomizationPerObjDataGameState_H

#include "OgrePrerequisites.h"
#include "TutorialGameState.h"

namespace Demo
{
class Hlms05CustomizationPerObjDataGameState : public TutorialGameState
{
std::vector<Ogre::Item *> mChangingItems;

public:
Hlms05CustomizationPerObjDataGameState( const Ogre::String &helpDescription );

void createScene01() override;

void update( float timeSinceLast ) override;
};
} // namespace Demo

#endif

0 comments on commit 9a66c04

Please sign in to comment.