ManaPlus
Macros
modernopenglgraphics.cpp File Reference

(986a3bf)

#include "render/modernopenglgraphics.h"
#include "graphicsmanager.h"
#include "render/opengl/mgl.h"
#include "render/shaders/shaderprogram.h"
#include "render/shaders/shadersmanager.h"
#include "render/vertexes/imagecollection.h"
#include "resources/imagerect.h"
#include "resources/openglimagehelper.h"
#include "resources/image/image.h"
#include "utils/delete2.h"
#include "utils/foreach.h"
#include "utils/sdlcheckutils.h"
#include "utils/sdlhelper.h"
#include "debug.h"
#include "render/graphics_drawImageRect.hpp"
#include "render/graphics_calcImageRect.hpp"

Go to the source code of this file.

Macros

#define vertFill2D(var, x1, y1, x2, y2, dstX, dstY, w, h)
 

Macro Definition Documentation

◆ vertFill2D

#define vertFill2D (   var,
  x1,
  y1,
  x2,
  y2,
  dstX,
  dstY,
  w,
 
)
Value:
var[vp + 0] = dstX; \
var[vp + 1] = dstY; \
var[vp + 2] = x1; \
var[vp + 3] = y1; \
\
var[vp + 4] = dstX + w; \
var[vp + 5] = dstY; \
var[vp + 6] = x2; \
var[vp + 7] = y1; \
\
var[vp + 8] = dstX + w; \
var[vp + 9] = dstY + h; \
var[vp + 10] = x2; \
var[vp + 11] = y2; \
\
var[vp + 12] = dstX; \
var[vp + 13] = dstY; \
var[vp + 14] = x1; \
var[vp + 15] = y1; \
\
var[vp + 16] = dstX; \
var[vp + 17] = dstY + h; \
var[vp + 18] = x1; \
var[vp + 19] = y2; \
\
var[vp + 20] = dstX + w; \
var[vp + 21] = dstY + h; \
var[vp + 22] = x2; \
var[vp + 23] = y2

Definition at line 53 of file modernopenglgraphics.cpp.