Смотри, че компайлит:
******************************************
../mgffont.cpp: In member function 'float MGFFONT::GetWidth(const char*, bool)':
../mgffont.cpp(129) : error: '((MGFFONT*)this)->MGFFONT::Quads[((int)c)]->MGFQUAD::Width' cannot be used as a function
../mgffont.cpp: In member function 'void MGFFONT::Render(float, float, int, const char*)':
../mgffont.cpp(194) : error: 'struct MGFQUAD' has no member named 'Vertexes'
../mgffont.cpp(196) : error: '((MGFFONT*)this)->MGFFONT::Quads[((int)n)]->MGFQUAD::Width' cannot be used as a function
make: *** [../mgffont.o] Error 1
я посмотрел, и в правду в
struct MGFQUAD {
....
объявлено float Width, Height;
а в
float MGFFONT::GetWidth(const char *text, bool scale) {
Quads[c]->Width()
вызов как функции. Походу не последнюю версию mgf выложил ?
еще 'Vertexes нету в 'struct MGFQUAD' ....
Последний раз редактировалось wSlava; 19.04.2007 в 22:31.
|