OpenSceneGraph/doc/doc++/osg/TriangleFunctor.html

169 lines
9.0 KiB
HTML
Raw Normal View History

2003-04-18 00:22:51 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>template<class T> class osg::TriangleFunctor</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
</HEAD>
<BODY BGCOLOR="#ffffff">
2003-09-10 16:35:16 +08:00
<H2>template&lt;class <!1><A HREF="TexGen.html#DOC.2.202.11.2">T</A>&gt; class <A HREF="#DOC.DOCU">osg::TriangleFunctor</A></H2></H2><HR>
2003-04-18 00:22:51 +08:00
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
<param name=classes value="MT,M,MDrawable::PrimitiveFunctor,M,CTriangleFunctor,MTriangleFunctor.html">
<param name=before value="M,M,M">
<param name=after value="Ml_,MD_,M">
<param name=indent value="0,0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.220.1">TriangleFunctor</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.220.2">~TriangleFunctor</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.3">setVertexArray</A></B>(unsigned int count, const <!1><A HREF="Vec3.html">Vec3</A>* vertices)
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.4">setVertexArray</A></B>(unsigned int, const <!1><A HREF="Vec4.html">Vec4</A>* )
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.5">drawArrays</A></B>(GLenum mode, GLint <!1><A HREF="ImpostorSpriteManager.html#DOC.2.93.3">first</A>, GLsizei count)
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.6">drawElements</A></B>(GLenum mode, GLsizei count, const GLubyte* <!1><A HREF="Geometry.html#DOC.2.84.65.6">indices</A>)
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.7">drawElements</A></B>(GLenum mode, GLsizei count, const GLushort* <!1><A HREF="Geometry.html#DOC.2.84.65.6">indices</A>)
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.8">drawElements</A></B>(GLenum mode, GLsizei count, const GLuint* <!1><A HREF="Geometry.html#DOC.2.84.65.6">indices</A>)
2003-07-23 19:27:31 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.9">begin</A></B>(GLenum mode)
2003-04-18 00:22:51 +08:00
<DD><I>begin(),vertex() & end() are convinience methods for adapting non vertex array primitives to vertex array based primitives.</I>
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.10">vertex</A></B>(const <!1><A HREF="Vec2.html">Vec2</A>&amp; vert)
2003-07-23 19:27:31 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.11">vertex</A></B>(const <!1><A HREF="Vec3.html">Vec3</A>&amp; vert)
2003-07-23 19:27:31 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.12">vertex</A></B>(const <!1><A HREF="Vec4.html">Vec4</A>&amp; vert)
2003-07-23 19:27:31 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.13">vertex</A></B>(float <!1><A HREF="Viewport.html#DOC.2.232.8">x</A>, float <!1><A HREF="Viewport.html#DOC.2.232.9">y</A>)
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.14">vertex</A></B>(float <!1><A HREF="Viewport.html#DOC.2.232.8">x</A>, float <!1><A HREF="Viewport.html#DOC.2.232.9">y</A>, float <!1><A HREF="Vec4.html#DOC.2.228.15">z</A>)
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.15">vertex</A></B>(float <!1><A HREF="Viewport.html#DOC.2.232.8">x</A>, float <!1><A HREF="Viewport.html#DOC.2.232.9">y</A>, float <!1><A HREF="Vec4.html#DOC.2.228.15">z</A>, float <!1><A HREF="Vec4.html#DOC.2.228.16">w</A>)
2003-07-23 19:27:31 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.220.16">end</A></B>()
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned int <B><A HREF="#DOC.2.220.17">_vertexArraySize</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="Vec3.html">Vec3</A>* <B><A HREF="#DOC.2.220.18">_vertexArrayPtr</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>GLenum <B><A HREF="#DOC.2.220.19">_modeCache</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-09-10 16:35:16 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>std::vector&lt;<!1><A HREF="Vec3.html">Vec3</A>&gt; <B><A HREF="#DOC.2.220.20">_vertexCache</A></B>
2003-04-18 00:22:51 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<DL>
<A NAME="TriangleFunctor"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.1"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TriangleFunctor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~TriangleFunctor"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.2"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~TriangleFunctor()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="setVertexArray"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.3"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setVertexArray(unsigned int count, const <!1><A HREF="Vec3.html">Vec3</A>* vertices)</B></TT>
<DL><DT><DD></DL><P>
2003-07-23 19:27:31 +08:00
<A NAME="setVertexArray"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void setVertexArray(unsigned int, const <!1><A HREF="Vec4.html">Vec4</A>* )</B></TT>
2003-07-23 19:27:31 +08:00
<DL><DT><DD></DL><P>
2003-04-18 00:22:51 +08:00
<A NAME="drawArrays"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void drawArrays(GLenum mode, GLint <!1><A HREF="ImpostorSpriteManager.html#DOC.2.93.3">first</A>, GLsizei count)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="drawElements"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void drawElements(GLenum mode, GLsizei count, const GLubyte* <!1><A HREF="Geometry.html#DOC.2.84.65.6">indices</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="drawElements"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void drawElements(GLenum mode, GLsizei count, const GLushort* <!1><A HREF="Geometry.html#DOC.2.84.65.6">indices</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="drawElements"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void drawElements(GLenum mode, GLsizei count, const GLuint* <!1><A HREF="Geometry.html#DOC.2.84.65.6">indices</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="begin"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.9"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void begin(GLenum mode)</B></TT>
2003-04-18 00:22:51 +08:00
<DD>begin(),vertex() & end() are convinience methods for adapting
non vertex array primitives to vertex array based primitives.
this is done to simplify the implementation of primtive functor
subclasses - users only need override drawArray and drawElements.
<DL><DT><DD></DL><P>
<A NAME="vertex"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.10"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void vertex(const <!1><A HREF="Vec2.html">Vec2</A>&amp; vert)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="vertex"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.11"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void vertex(const <!1><A HREF="Vec3.html">Vec3</A>&amp; vert)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="vertex"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.12"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void vertex(const <!1><A HREF="Vec4.html">Vec4</A>&amp; vert)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="vertex"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void vertex(float <!1><A HREF="Viewport.html#DOC.2.232.8">x</A>, float <!1><A HREF="Viewport.html#DOC.2.232.9">y</A>)</B></TT>
2003-07-23 19:27:31 +08:00
<DL><DT><DD></DL><P>
<A NAME="vertex"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void vertex(float <!1><A HREF="Viewport.html#DOC.2.232.8">x</A>, float <!1><A HREF="Viewport.html#DOC.2.232.9">y</A>, float <!1><A HREF="Vec4.html#DOC.2.228.15">z</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="vertex"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void vertex(float <!1><A HREF="Viewport.html#DOC.2.232.8">x</A>, float <!1><A HREF="Viewport.html#DOC.2.232.9">y</A>, float <!1><A HREF="Vec4.html#DOC.2.228.15">z</A>, float <!1><A HREF="Vec4.html#DOC.2.228.16">w</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="end"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.16"></A>
2003-07-23 19:27:31 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void end()</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="_vertexArraySize"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.17"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>unsigned int _vertexArraySize</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_vertexArrayPtr"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.18"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="Vec3.html">Vec3</A>* _vertexArrayPtr</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_modeCache"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.19"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>GLenum _modeCache</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_vertexCache"></A>
2003-09-10 16:35:16 +08:00
<A NAME="DOC.2.220.20"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>std::vector&lt;<!1><A HREF="Vec3.html">Vec3</A>&gt; _vertexCache</B></TT>
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>