Mercurial > octave-dspies
view examples/myfunc.c @ 18702:8969bd721448
Fix Z-depth issues of patches and lines in 2-D plots (bug #40722).
* gl-render.cc (draw_patch): Call patch_tesselator constructor with
a negative Z-offset for glPolygonOffset to pull it forward of line objects
at Z=0.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 29 Apr 2014 11:39:58 -0700 |
parents | 224e76250443 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { const char *nm; nm = mexFunctionName (); mexPrintf ("You called function: %s\n", nm); if (strcmp (nm, "myfunc") == 0) mexPrintf ("This is the principal function\n", nm); return; }