106 lines
4.7 KiB
HTML
106 lines
4.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class OSGUTIL_EXPORT osgUtil::HalfWayMapGenerator</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class OSGUTIL_EXPORT <A HREF="#DOC.DOCU">osgUtil::HalfWayMapGenerator</A></H2></H2><BLOCKQUOTE>This cube map generator produces an Half-way vector map, useful for hardware-based specular lighting effects.</BLOCKQUOTE>
|
|
<HR>
|
|
|
|
<H2>Inheritance:</H2>
|
|
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
|
|
<param name=classes value="Mosg::Referenced,M,CCubeMapGenerator,MCubeMapGenerator.html,CHalfWayMapGenerator,MHalfWayMapGenerator.html">
|
|
<param name=before value="M,M,M">
|
|
<param name=after value="Md_SP,Md_,M">
|
|
<param name=indent value="0,1,2">
|
|
<param name=arrowdir value="down">
|
|
</APPLET>
|
|
<HR>
|
|
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.6.1">HalfWayMapGenerator</A></B>(const osg::Vec3 &light_direction, int texture_size = 64)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.6.2">HalfWayMapGenerator</A></B>(const <!1><A HREF="HalfWayMapGenerator.html#DOC.2.6.2">HalfWayMapGenerator</A> &copy, const osg::CopyOp &copyop)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline osg::Vec4 <B><A HREF="#DOC.2.6.7">compute_color</A></B>(const osg::Vec3 &R) const
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.6.3">~HalfWayMapGenerator</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="HalfWayMapGenerator.html">HalfWayMapGenerator</A>& <B><A HREF="#DOC.2.6.4">operator=</A></B>(const <!1><A HREF="HalfWayMapGenerator.html">HalfWayMapGenerator</A> &)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline virtual osg::Vec4 <B><A HREF="#DOC.2.6.5">compute_color</A></B>(const osg::Vec3 &R) const
|
|
</DL></P>
|
|
|
|
</DL>
|
|
<HR><H3>Inherited from <A HREF="CubeMapGenerator.html">CubeMapGenerator</A>:</H3>
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>void <B>generateMap</B>(bool use_osg_system = true)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline osg::Image* <B>getImage</B>(osg::TextureCubeMap::Face face)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline const osg::Image* <B>getImage</B>(osg::TextureCubeMap::Face face) const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>set_pixel</B>(int index, int c, int r, const osg::Vec4 &color)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline osg::Vec4 <B>vector_to_color</B>(const osg::Vec3 &vec)
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline static osg::Vec4 <B>vector_to_color</B>(const osg::Vec3 &vec)
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>This cube map generator produces an Half-way vector map, useful for
|
|
hardware-based specular lighting effects.
|
|
It computes: C = normalize(R - L), where C is the resulting color,
|
|
R is the reflection vector and L is the light direction.</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="HalfWayMapGenerator"></A>
|
|
<A NAME="DOC.2.6.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> HalfWayMapGenerator(const osg::Vec3 &light_direction, int texture_size = 64)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="HalfWayMapGenerator"></A>
|
|
<A NAME="DOC.2.6.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> HalfWayMapGenerator(const <!1><A HREF="HalfWayMapGenerator.html#DOC.2.6.2">HalfWayMapGenerator</A> &copy, const osg::CopyOp &copyop)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="~HalfWayMapGenerator"></A>
|
|
<A NAME="DOC.2.6.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~HalfWayMapGenerator()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator="></A>
|
|
<A NAME="DOC.2.6.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="HalfWayMapGenerator.html">HalfWayMapGenerator</A>& operator=(const <!1><A HREF="HalfWayMapGenerator.html">HalfWayMapGenerator</A> &)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compute_color"></A>
|
|
<A NAME="DOC.2.6.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline virtual osg::Vec4 compute_color(const osg::Vec3 &R) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compute_color"></A>
|
|
<A NAME="DOC.2.6.7"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline osg::Vec4 compute_color(const osg::Vec3 &R) const </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>
|