31#include "animManager.hpp"
53 void (*editorAddElements)();
97 VkDescriptorSet descriptorSet;
241 std::vector<std::pair<int, Chronos::Manager::ShapeParams>>
267 std::vector<std::pair<int, Chronos::Engine::TextParams>>
297 int addTexture(std::string texturePath, std::string textureName);
389 animManager.rigRemoveChild(rigNo, parentNo, childNo);
474 animManager.keyframeSetKeyframe(keyframeNo, keyframe);
479 return animManager.keyframeGetKeyframe(keyframeNo);
489 return animManager.keyframeGetVariable(keyframeNo);
492#ifdef CHRONOS_PROFILING
493 float getWaitTime() {
return engine.getWaitTime() * 1e-6; }
495 float getUpdateTime() {
return engine.getUpdateTime() * 1e-6; }
497 float getCpuTime() {
return engine.getCpuTime() * 1e-6; }
499 float getTotalTime() {
return engine.getTotalTime() * 1e-6; }
501 float getPresentTime() {
return engine.getPresentTime() * 1e-6; }
void setPresentMode(std::string mode)
Changes the present mode of the swapchain.
void changeMSAA(std::string)
std::vector< std::string > getAvailableMSAAModes()
The main manager of chronos.
Chronos::Engine::Engine engine
The backend Vulkan engine, used for rendering the desired shapes and text.s.
int addText(Chronos::Engine::TextParams params, std::string fontType, int fontSize)
Adds text to the window.
std::vector< std::pair< int, Chronos::Engine::TextParams > > getTextDetails()
Returns the details of all text defined.
Chronos::Animation::AnimationManager animManager
void removeObject(int objectNo)
int changeBackgroundColor(float r, float g, float b)
Changes the background color of the window.
void updateText(int objectNo, Chronos::Engine::TextParams params)
Updates the text with the new parameters.
void rigAddBone(int rigNo, int parentNo)
void updateShape(int objectNo, Chronos::Manager::ShapeParams shapeParams)
Updates the polygon(any) with the new parameters.
GLFWwindow * getWindow()
Gets a reference to the GLFWWindow.
int keyframeGetKeyframe(int keyframeNo)
int addShape(Chronos::Manager::ShapeParams shapeParams, int texture)
Adds a textured rectangle to the window.
void rigSetLength(int rigNo, int boneNo, float length)
void rigSetAngle(int rigNo, int boneNo, float angle)
void rigSetRelY(int rigNo, int boneNo, float relY)
void removeTexture(int textureNo)
Removes the texture from the window.
void rigSetParent(int rigNo, int boneNo, int parentNo)
float rigGetRelX(int rigNo, int boneNo)
int addTexture(std::string texturePath, std::string textureName)
Loads a texture from file.
void rigRemoveChild(int rigNo, int parentNo, int childNo)
void drawFrame()
Draws the current frame to the window.
void changePresentMode(std::string presentMode)
Changes the present mode of the swapchain.
std::vector< std::pair< int, Chronos::Manager::ShapeParams > > getShapeDetails()
std::vector< int > rigGetChildren(int rigNo, int boneNo)
void rigAddChild(int rigNo, int parentNo, int childNo)
int rigGetParent(int rigNo, int boneNo)
int addKeyframeVariable(std::vector< std::pair< float, float > > keyframes)
void keyframeSetTime(int keyframeNo, float time)
float rigGetX(int rigNo, int boneNo)
float keyframeGetVariable(int keyframeNo)
void rigRemoveBone(int rigNo, int boneNo)
void rigSetRelX(int rigNo, int boneNo, float relX)
void removeRig(int rigNo)
void removeKeyframeVariable(int keyframeNo)
std::vector< std::string > getMSAAModes()
float rigGetRelY(int rigNo, int boneNo)
float rigGetLength(int rigNo, int boneNo)
void changeMSAA(std::string mode)
float rigGetAngle(int rigNo, int boneNo)
std::vector< std::pair< float, float > > getKeyframes(int keyframeNo)
void keyframeSetKeyframe(int keyframeNo, int keyframe)
std::vector< TextureDetails > getTextureDetails()
Returns the details of all textures defined.
float rigGetY(int rigNo, int boneNo)
Header file that contains common structs used in Chronos.
Contains ShapeParams and UniformBufferObject structs.
Contains the Engine class.
Parameters for rendering text.
This struct contains the details for initialing the manager.
Parameters for creating a shape(any)
Text parameters for displaying text.
Holds some details about the texture.