forked from openscad/openscad
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openscad:master' into master
- Loading branch information
Showing
14 changed files
with
293 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,37 @@ | ||
#include "glview/GLView.h" | ||
|
||
#include <cassert> | ||
#include <cstddef> | ||
#include <cstdint> | ||
#include <memory> | ||
#include <cstddef> | ||
#include <string> | ||
#include <vector> | ||
|
||
GLView::GLView() {} | ||
GLView::~GLView() {} | ||
void GLView::setRenderer(std::shared_ptr<Renderer>) {} | ||
void GLView::initializeGL() {} | ||
void GLView::resizeGL(int w, int h) {} | ||
void GLView::setCamera(const Camera& cam) {assert(false && "not implemented");} | ||
void GLView::paintGL() {} | ||
void GLView::showSmallaxes(const Color4f& col) {} | ||
void GLView::showAxes(const Color4f& col) {} | ||
void GLView::showCrosshairs(const Color4f& col) {} | ||
void GLView::setColorScheme(const ColorScheme& cs){assert(false && "not implemented");} | ||
void GLView::setColorScheme(const std::string& cs) {assert(false && "not implemented");} | ||
|
||
#include "geometry/linalg.h" | ||
#include "glview/Camera.h" | ||
#include "glview/ColorMap.h" | ||
#include "glview/Renderer.h" | ||
#include "glview/fbo.h" | ||
#include "glview/GLView.h" | ||
#include "glview/OpenGLContext.h" | ||
#include "glview/system-gl.h" | ||
|
||
double gl_version() { return -1; } | ||
bool FBO::resize(size_t, size_t) { return false; } | ||
FBO::FBO(int, int, bool ) {} | ||
GLuint FBO::bind() { return 0; } | ||
GLView::~GLView() = default; | ||
GLView::GLView() = default; | ||
std::string gl_dump() { return {"GL Renderer: NULLGL\n"}; } | ||
std::string gl_extensions_dump() { return {"NULLGL Extensions"}; } | ||
bool report_glerror(const char *function) { return false; } | ||
|
||
#include "glview/OpenGLContext.h" | ||
std::unique_ptr<FBO> createFBO(int, int) {return nullptr;} | ||
std::vector<uint8_t> OpenGLContext::getFramebuffer() const { return {}; } | ||
|
||
#include "glview/fbo.h" | ||
|
||
FBO::FBO(int, int, bool ) {} | ||
bool FBO::resize(size_t, size_t) { return false; } | ||
GLuint FBO::bind() { return 0; } | ||
void FBO::unbind() {} | ||
void FBO::destroy() {} | ||
std::unique_ptr<FBO> createFBO(int, int) {return nullptr;} | ||
void FBO::unbind() {} | ||
void GLView::initializeGL() {} | ||
void GLView::paintGL() {} | ||
void GLView::resizeGL(int w, int h) {} | ||
void GLView::setCamera(const Camera& /*cam*/) {assert(false && "not implemented");} | ||
void GLView::setColorScheme(const ColorScheme& /*cs*/){assert(false && "not implemented");} | ||
void GLView::setColorScheme(const std::string& /*cs*/) {assert(false && "not implemented");} | ||
void GLView::setRenderer(std::shared_ptr<Renderer>) {} | ||
void GLView::showAxes(const Color4f& col) {} | ||
void GLView::showCrosshairs(const Color4f& col) {} | ||
void GLView::showSmallaxes(const Color4f& col) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.