History

rename model:: -> graphics::

humbletim committed 8 years ago

Commit b91d5361 parent 08ccda971 files · +340 −340Browse files

Showing the changes to libraries/render-utils/src/Model.cpp (1 of 71 files). Show all

Unified · Split

libraries/render-utils/src/Model.cpp+7−7
@@ -46,7 +46,7 @@ float Model::FAKE_DIMENSION_PLACEHOLDER = -1.0f; · 45 unmodified lines
4646 #define HTTP_INVALID_COM "http://invalid.com"
4747
4848 const int NUM_COLLISION_HULL_COLORS = 24;
49−std::vector<model::MaterialPointer> _collisionMaterials;
49+std::vector<graphics::MaterialPointer> _collisionMaterials;
5050
5151 void initCollisionMaterials() {
5252 // generates bright colors in red, green, blue, yellow, magenta, and cyan spectrums
@@ -72,8 +72,8 @@ void initCollisionMaterials() { · 19 unmodified lines
7272 // so they don't tend to group together for large models
7373 for (int i = 0; i < sectionWidth; ++i) {
7474 for (int j = 0; j < numComponents; ++j) {
75− model::MaterialPointer material;
76− material = std::make_shared<model::Material>();
75+ graphics::MaterialPointer material;
76+ material = std::make_shared<graphics::Material>();
7777 int index = j * sectionWidth + i;
7878 float red = component[index];
7979 float green = component[(index + greenPhase) % NUM_COLLISION_HULL_COLORS];
@@ -559,7 +559,7 @@ MeshProxyList Model::getMeshes() const { · 479 unmodified lines
559559 offset.postTranslate(_offset);
560560 glm::mat4 offsetMat = offset.getMatrix();
561561
562− for (std::shared_ptr<const model::Mesh> mesh : meshes) {
562+ for (std::shared_ptr<const graphics::Mesh> mesh : meshes) {
563563 if (!mesh) {
564564 continue;
565565 }
@@ -1481,7 +1481,7 @@ void Model::createCollisionRenderItemSet() { · 915 unmodified lines
14811481 // Create the render payloads
14821482 int numParts = (int)mesh->getNumParts();
14831483 for (int partIndex = 0; partIndex < numParts; partIndex++) {
1484− model::MaterialPointer& material = _collisionMaterials[partIndex % NUM_COLLISION_HULL_COLORS];
1484+ graphics::MaterialPointer& material = _collisionMaterials[partIndex % NUM_COLLISION_HULL_COLORS];
14851485 auto payload = std::make_shared<MeshPartPayload>(mesh, partIndex, material);
14861486 payload->updateTransform(identity, offset);
14871487 _collisionRenderItems << payload;
@@ -1495,7 +1495,7 @@ bool Model::isRenderable() const { · 7 unmodified lines
14951495
14961496 class CollisionRenderGeometry : public Geometry {
14971497 public:
1498− CollisionRenderGeometry(model::MeshPointer mesh) {
1498+ CollisionRenderGeometry(graphics::MeshPointer mesh) {
14991499 _fbxGeometry = std::make_shared<FBXGeometry>();
15001500 std::shared_ptr<GeometryMeshes> meshes = std::make_shared<GeometryMeshes>();
15011501 meshes->push_back(mesh);
@@ -1504,7 +1504,7 @@ public: · 2 unmodified lines
15041504 }
15051505 };
15061506
1507−void Model::setCollisionMesh(model::MeshPointer mesh) {
1507+void Model::setCollisionMesh(graphics::MeshPointer mesh) {
15081508 if (mesh) {
15091509 _collisionGeometry = std::make_shared<CollisionRenderGeometry>(mesh);
15101510 } else {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t