hello everyone
i come from china and i like urho3d
i have some problem and please help me,thanks
for urho3d-master, compiled and completed with vs2012.
I want to create an own skybox in the engines.
So I created MySkyBox.h, MySkyBox.cpp in D: \ Urho3D-master \ Source \ Urho3D \ Graphics
Here is the code of these two documents
MySkyBox.h
#pragma once
#include "../Graphics/StaticModel.h"
namespace Urho3D
{
class URHO3D_API MySkyBox:public StaticModel
{
OBJECT(MySkyBox);
public:
MySkyBox(Context* context);
virtual ~MySkyBox();
static void RegisterObject(Context* context);
virtual void ProcessRayQuery(const RayOctreeQuery& query, PODVector<RayQueryResult>& results){};
virtual void UpdateBatches(const FrameInfo& frame){};
protected:
virtual void OnWorldBoundingBoxUpdate(){};
};
}
MySkyBox.cpp
#include "../Scene/Node.h"
#include "../Graphics/MySkyBox.h"
#include "../DebugNew.h"
namespace Urho3D
{
MySkyBox::MySkyBox(Context* context):StaticModel(context)
{
}
}
For simplicity, I just wrote a little code.
But I compile MySkyBox.cpp appeared in the 202 error.
My English is not good, please forgive me
And please help me for the above problem
??! (thanks!)