OpenCV  2.4.13.6
Open Source Computer Vision
cv::ogl Namespace Reference

Classes

class  Arrays
 OpenGL Arrays. More...
 
class  Buffer
 Smart pointer for OpenGL buffer memory with reference counting. More...
 
class  Texture2D
 Smart pointer for OpenGL 2D texture memory with reference counting. More...
 

Enumerations

enum  {
  POINTS = 0x0000, LINES = 0x0001, LINE_LOOP = 0x0002, LINE_STRIP = 0x0003,
  TRIANGLES = 0x0004, TRIANGLE_STRIP = 0x0005, TRIANGLE_FAN = 0x0006, QUADS = 0x0007,
  QUAD_STRIP = 0x0008, POLYGON = 0x0009
}
 render mode More...
 

Functions

void render (const Texture2D &tex, Rect_< double > wndRect=Rect_< double >(0.0, 0.0, 1.0, 1.0), Rect_< double > texRect=Rect_< double >(0.0, 0.0, 1.0, 1.0))
 render texture rectangle in window More...
 
void render (const Arrays &arr, int mode=POINTS, Scalar color=Scalar::all(255))
 render OpenGL arrays More...
 
void render (const Arrays &arr, InputArray indices, int mode=POINTS, Scalar color=Scalar::all(255))
 
bool checkError (const char *file, const int line, const char *func="")
 

Enumeration Type Documentation

§ anonymous enum

anonymous enum

render mode

Enumerator
POINTS 
LINES 
LINE_LOOP 
LINE_STRIP 
TRIANGLES 
TRIANGLE_STRIP 
TRIANGLE_FAN 
QUADS 
QUAD_STRIP 
POLYGON 

Function Documentation

§ checkError()

bool cv::ogl::checkError ( const char *  file,
const int  line,
const char *  func = "" 
)

§ render() [1/3]

void cv::ogl::render ( const Texture2D tex,
Rect_< double >  wndRect = Rect_< double >(0.0, 0.0, 1.0, 1.0),
Rect_< double >  texRect = Rect_< double >(0.0, 0.0, 1.0, 1.0) 
)

render texture rectangle in window

§ render() [2/3]

void cv::ogl::render ( const Arrays arr,
int  mode = POINTS,
Scalar  color = Scalar::all(255) 
)

render OpenGL arrays

§ render() [3/3]

void cv::ogl::render ( const Arrays arr,
InputArray  indices,
int  mode = POINTS,
Scalar  color = Scalar::all(255) 
)