Pg functions

Hi,

This is my self-explained problem:

/*
$Id: IDisplayPhoton.cpp,v 1.4 2000/10/22 16:48:46 hmichelon Exp $
--------------------------------------------------------------------------*/
#ifdef QNX
#include <nmo/NMO.hpp>
#include <nmo/Interface.hpp>
#include “IDisplayPhoton.hpp”
#include <photon/Pg.h>

// -------------------------------
_BOOL IDisplayPhoton::CreateBuffer(PtWidget_t *window)
{
PgVideoModeInfo_t mode_info;
PgDisplaySettings_t display_settings;
PgGetVideoMode(&display_settings);
PgGetVideoModeInfo(display_settings.mode ,&mode_info);
IScreen::SetSize(mode_info.width, mode_info.height);

Debug(dprintf(“Photon screen: %dx%dx%d (%d)\n”,
mode_info.width,
mode_info.height,
mode_info.bits_per_pixel,
mode_info.type):wink:

Let’s trying to compile that:

make

gcc -O2 -DLC_ENG -I/root/nmo-sdk -pipe -c
/root/nmo-sdk/src/interface/IDisplayPhot
on.cpp -o /root/nmo-sdk/src/interface/IDisplayPhoton.o
/root/nmo-sdk/src/interface/IDisplayPhoton.cpp: In method _BOOL NMO::IDisplayPhoto n::CreateBuffer(PtWidget_t *)': /root/nmo-sdk/src/interface/IDisplayPhoton.cpp:44: implicit declaration of function int PgGetVideoMode(…)’
/root/nmo-sdk/src/interface/IDisplayPhoton.cpp:45: implicit declaration
of function
`int PgGetVideoModeInfo(…)’
make: *** [/root/nmo-sdk/src/interface/IDisplayPhoton.o] Error 1

Where is PgGetVideoMode ?? :

cd /usr/include/photon/

pwd

/usr/include/photon

ls Pg*

Pg.h PgHLS.h PgRGB.h
PgCMYK.h PgHSB.h PgRamScreen.h
PgGradient.h PgMacros.h PgVector.h

grep PgGetVideo *.h

PgGetVideoModeXXX aren’t declared in any include file, only the structs
used by this functions are declared.

\

Henri Michelon Henri.Michelon@iiriam.fr

http://nmo-sdk.sourceforge.net/ The Universal SDK.