#ifndef NATIVE_RENDER_H #define NATIVE_RENDER_H #include #include #include "common.h" #include "EGLCore.h" #include #include "Context/Context.h" #include "Camera/Camera.h" #include "Axis/WorldAxis.h" #include "Axis/LocalAxis.h" #include "OpenGLGraphicDriver/OpenGLGraphicDriver.h" #include "TextStyle/TextStyle.h" #include "View/View.h" #include "Viewer/Viewer.h" #include #include #include namespace NativeOpenCAX { class NativeRender { public: NativeRender(); ~NativeRender(); bool init(int width, int height,EGLCore* eglCore); bool loadModel(const std::string& filePath); void render(); void resize(int width, int height); void setRotation(float xAngle, float yAngle); void resetView(); void setClearColor(float r, float g, float b, float a); void setZoomLevel(float zoom); void setTranslation(float x, float y); void setCameraRotationMode(bool state); private: RenderOption rendOption; AxisOption axis; std::vector shapes_; }; } // namespace NativeRender #endif // NATIVE_RENDER_H