#include <sg/sg_base.h>


Go to the source code of this file.
Functions | |
| void | Oglps_begin (void) |
| Setup the feedback buffer for the OpenGL library to render into. | |
| void | Oglps_end (int outLine, int inColor, int doCulling) |
| Feed triangles from the OpenGL library into our buffer and output to file. | |
| void | Oglps_gen (char *filename, int inColor, int width, int height) |
| Quick and dirty postscript generator (low-resolution only). | |
* * SG = < Socket Graphics > * Copyright (C) 1994--2008 Michael Holst * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *
| void Oglps_begin | ( | void | ) |
Setup the feedback buffer for the OpenGL library to render into.
| void Oglps_end | ( | int | outLine, | |
| int | inColor, | |||
| int | doCulling | |||
| ) |
Feed triangles from the OpenGL library into our buffer and output to file.
| outLine | 0=use filled triangles 1=use filled triangles and then outline them | |
| inColor | 0=grayscale 1=color | |
| doCulling | 0=don't cull (render everything) 1=cull (remove backface triangles before rendering) |
| void Oglps_gen | ( | char * | filename, | |
| int | inColor, | |||
| int | width, | |||
| int | height | |||
| ) |
Quick and dirty postscript generator (low-resolution only).
| filename | name of file containing PostScript output | |
| inColor | 0=grayscale, 1=color | |
| width | width of input image in pixels | |
| height | height of input image in pixels |
1.5.6