Skip to content

Commit

Permalink
Dynamics, rm profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerboa-app committed Sep 8, 2024
1 parent 07d5c3b commit 6cd2535
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
2 changes: 0 additions & 2 deletions examples/Shape/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ endif()

include_directories(.)

add_link_options("-Wl,--no-as-needed,-lprofiler,--as-needed")

add_executable(${OUTPUT_NAME} ${SRC})

target_link_libraries(${OUTPUT_NAME} jGL)
Expand Down
19 changes: 8 additions & 11 deletions examples/Shape/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,14 @@ int main(int argv, char ** argc)

jGLInstance->clear();

// for (unsigned i = 0; i <shapes.size(); i++)
// {
// auto tr = circles->getTransform(std::to_string(i));
// trans[i] = jGL::Transform
// (
// tr.x+dt*(rng.nextFloat()-0.5),
// tr.y+dt*(rng.nextFloat()-0.5),
// tr.theta,
// tr.scaleX
// );
// }
for (unsigned i = 0; i <shapes.size(); i++)
{
auto & tr = trans[i];
tr.x = tr.x+dt*(rng.nextFloat()-0.5);
tr.y = tr.y+dt*(rng.nextFloat()-0.5);
tr.theta = tr.theta;
tr.scaleX = tr.scaleX;
}

circles->draw(shader, uinfo);

Expand Down

0 comments on commit 6cd2535

Please sign in to comment.