Spaces:
Build error
Build error
Download third-party/DPVO/Pangolin/examples/HelloPangolin/main.cpp from Form-Fighter/FormFighterAIStack: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/Form-Fighter/FormFighterAIStack/resolve/0971a91ebf4ca02ac9ba56b7af0ab2098dcda607/third-party/DPVO/Pangolin/examples/HelloPangolin/main.cpp
- Command line
-
hf download hf://spaces/Form-Fighter/FormFighterAIStack@0971a91ebf4ca02ac9ba56b7af0ab2098dcda607/third-party/DPVO/Pangolin/examples/HelloPangolin/main.cpp
-
curl -L -o main.cpp https://huggingface.co/spaces/Form-Fighter/FormFighterAIStack/resolve/0971a91ebf4ca02ac9ba56b7af0ab2098dcda607/third-party/DPVO/Pangolin/examples/HelloPangolin/main.cpp
1.13 kB
| int main( int /*argc*/, char** /*argv*/ ) | |
| { | |
| pangolin::CreateWindowAndBind("Main",640,480); | |
| glEnable(GL_DEPTH_TEST); | |
| // Define Projection and initial ModelView matrix | |
| pangolin::OpenGlRenderState s_cam( | |
| pangolin::ProjectionMatrix(640,480,420,420,320,240,0.2,100), | |
| pangolin::ModelViewLookAt(-2,2,-2, 0,0,0, pangolin::AxisY) | |
| ); | |
| // Create Interactive View in window | |
| pangolin::Handler3D handler(s_cam); | |
| pangolin::View& d_cam = pangolin::CreateDisplay() | |
| .SetBounds(0.0, 1.0, 0.0, 1.0, -640.0f/480.0f) | |
| .SetHandler(&handler); | |
| while( !pangolin::ShouldQuit() ) | |
| { | |
| // Clear screen and activate view to render into | |
| glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | |
| d_cam.Activate(s_cam); | |
| // Render OpenGL Cube | |
| pangolin::glDrawColouredCube(); | |
| // Swap frames and Process Events | |
| pangolin::FinishFrame(); | |
| } | |
| return 0; | |
| } | |