Skip to content

Commit

Permalink
logos where they belong
Browse files Browse the repository at this point in the history
  • Loading branch information
reinago committed Jun 21, 2018
1 parent a7a82fe commit 77147cc
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 1 deletion.
60 changes: 60 additions & 0 deletions core/include/mmcore/view/View3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "vislib/graphics/InputModifiers.h"
#include "vislib/math/Cuboid.h"
#include "vislib/sys/PerformanceCounter.h"
#include "vislib/graphics/gl/OpenGLTexture2D.h"


namespace megamol {
Expand Down Expand Up @@ -550,6 +551,65 @@ namespace view {

/** Flag whether mouse control is to be handed over to the renderer */
bool toggleMouseSelection;

private:

/**********************************************************************
* variables
**********************************************************************/

enum corner {
TOP_LEFT = 0,
TOP_RIGHT = 1,
BOTTOM_LEFT = 2,
BOTTOM_RIGHT = 3,
};

vislib::graphics::gl::OpenGLTexture2D textureTopLeft;
vislib::graphics::gl::OpenGLTexture2D textureTopRight;
vislib::graphics::gl::OpenGLTexture2D textureBottomLeft;
vislib::graphics::gl::OpenGLTexture2D textureBottomRight;

vislib::math::Vector<float, 2> sizeTopLeft;
vislib::math::Vector<float, 2> sizeTopRight;
vislib::math::Vector<float, 2> sizeBottomLeft;
vislib::math::Vector<float, 2> sizeBottomRight;

float lastScaleAll;
bool firstParamChange;

/**********************************************************************
* functions
**********************************************************************/

/* */
SIZE_T loadFile(vislib::StringA name, void **outData);

/** */
bool loadTexture(View3D::corner cor, vislib::StringA filename);

/** */
bool renderWatermark(View3D::corner cor, float vpH, float vpW);

/**********************************************************************
* parameters
**********************************************************************/

/** */
core::param::ParamSlot paramImgTopLeft;
core::param::ParamSlot paramImgTopRight;
core::param::ParamSlot paramImgBottomLeft;
core::param::ParamSlot paramImgBottomRight;

/** */
core::param::ParamSlot paramScaleAll;
core::param::ParamSlot paramScaleTopLeft;
core::param::ParamSlot paramScaleTopRight;
core::param::ParamSlot paramScaleBottomLeft;
core::param::ParamSlot paramScaleBottomRight;

/** */
core::param::ParamSlot paramAlpha;

};

Expand Down
Loading

0 comments on commit 77147cc

Please sign in to comment.