<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_rw_t_g_a_8h">
<title>/Users/bernard/b20/bsoft/include/rwTGA.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/include/rwTGA.h</primary></indexterm>
<para>

<para>Header file for reading and writing Truevision TGA files. </para>
 
</para>
<programlisting>#include &quot;rwimg.h&quot;
</programlisting><simplesect>
    <title>Macros    </title>
        <itemizedlist>
            <listitem><para>#define <link linkend="_rw_t_g_a_8h_1abd2d8e81140dca83755c32978a829c7c">TGASIZE</link>   18</para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>struct <link linkend="_rw_t_g_a_8h_1a9fc4b141c31aba21c665dc7fdbccd7c9">__attribute__</link> ((packed)) TGAhead</para>
</listitem>
            <listitem><para>int <link linkend="_rw_t_g_a_8h_1a09e8e33d830bcb3ba4c796586b300b05">readTGA</link> (<link linkend="_class_bimage">Bimage</link> *p, int readdata)</para>

<para>Reading a Truevision TGA image file format. </para>
</listitem>
            <listitem><para>int <link linkend="_rw_t_g_a_8h_1a9cbcd593b3197b4f792f559217be2bd8">writeTGA</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>

<para>Writing a Truevision TGA map image file format. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Header file for reading and writing Truevision TGA files. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 20150811 </para>

<para>Modified: 20150815 <literallayout><computeroutput>Format: Truevision image file format
</computeroutput></literallayout> </para>
</formalpara>
</para>
</section>
<section>
<title>Macro Definition Documentation</title>
<anchor xml:id="_rw_t_g_a_8h_1abd2d8e81140dca83755c32978a829c7c"/>    <section>
    <title>TGASIZE</title>
<indexterm><primary>TGASIZE</primary><secondary>rwTGA.h</secondary></indexterm>
<indexterm><primary>rwTGA.h</primary><secondary>TGASIZE</secondary></indexterm>
<para><computeroutput>#define TGASIZE   18</computeroutput></para><para>
Definition at line 13 of file rwTGA.h.</para>
</section>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rw_t_g_a_8h_1a9fc4b141c31aba21c665dc7fdbccd7c9"/>    <section>
    <title>__attribute__()</title>
<indexterm><primary>__attribute__</primary><secondary>rwTGA.h</secondary></indexterm>
<indexterm><primary>rwTGA.h</primary><secondary>__attribute__</secondary></indexterm>
<para><computeroutput>struct __attribute__ ((packed) )</computeroutput></para><para>
Definition at line 15 of file rwTGA.h.</para>
    </section><anchor xml:id="_rw_t_g_a_8h_1a09e8e33d830bcb3ba4c796586b300b05"/>    <section>
    <title>readTGA()</title>
<indexterm><primary>readTGA</primary><secondary>rwTGA.h</secondary></indexterm>
<indexterm><primary>rwTGA.h</primary><secondary>readTGA</secondary></indexterm>
<para><computeroutput>int readTGA (<link linkend="_class_bimage">Bimage</link> * p, int readdata)</computeroutput></para><para>

<para>Reading a Truevision TGA image file format. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>readdata</entry>
                                <entry>
<para>flag to activate reading of image data. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). A color image format. Header size: 18 bytes (fixed). File format extensions: .tga The identifier is ???. Byte order: Little endian. Data types: 1 = byte, 2 = float, 3 = complex float 4 = 3-value vector, 5 = view </para>
</formalpara>
</para>
<para>
Definition at line 134 of file rwTGA.cpp.</para>
    </section><anchor xml:id="_rw_t_g_a_8h_1a9cbcd593b3197b4f792f559217be2bd8"/>    <section>
    <title>writeTGA()</title>
<indexterm><primary>writeTGA</primary><secondary>rwTGA.h</secondary></indexterm>
<indexterm><primary>rwTGA.h</primary><secondary>writeTGA</secondary></indexterm>
<para><computeroutput>int writeTGA (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>

<para>Writing a Truevision TGA map image file format. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). </para>
</formalpara>
</para>
<para>
Definition at line 266 of file rwTGA.cpp.</para>
</section>
</section>
</section>
