Commit e4287c28 authored by Rudolf Polzer's avatar Rudolf Polzer

my own uncrustify run

parent 203343b0

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

#include <stdio.h> /* jpeglib.h needs it */
#include CONFTEST_HEADER
int main()
{
int main(){
(void) CONFTEST_SYMBOL;
return 0;
}
This diff is collapsed.
/*
Copyright (C) 2003 Reed Mideke.
Copyright (C) 2003 Reed Mideke.
This file is part of GtkRadiant.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GtkRadiant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GtkRadiant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GtkRadiant; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
You should have received a copy of the GNU General Public License
along with GtkRadiant; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//
// bkgrnd2d Plugin
......@@ -30,53 +30,56 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
class CBackgroundImage {
private:
qtexture_t *m_tex;
VIEWTYPE m_vt;
qtexture_t *m_tex;
VIEWTYPE m_vt;
// which components of a vec3_t correspond to x and y in the image
unsigned m_ix,m_iy;
unsigned m_ix,m_iy;
public:
CBackgroundImage(VIEWTYPE vt);
CBackgroundImage( VIEWTYPE vt );
// ~CBackgroundImage();
float m_alpha; // vertex alpha
bool m_bActive;
float m_alpha; // vertex alpha
bool m_bActive;
// x and y axis are in relation to the screen, not world, making rendering
// the same for each view type. Whoever sets them is responsible for
// the same for each view type. Whoever sets them is responsible for
// shuffling.
// units are world units.
// TODO should be private
float m_xmin,m_ymin,m_xmax,m_ymax;
float m_xmin,m_ymin,m_xmax,m_ymax;
// load file, create new tex, cleanup old tex, set new tex
bool Load(const char *filename);
void Cleanup(); // free texture, free tex, set make tex NULL
bool SetExtentsMM(); // set extents by ET mapcoordsmaxs/mapcoordsmins
bool SetExtentsSel(); // set extents by selection
void Render();
bool Valid() { return (m_tex && (m_xmin != m_xmax) && (m_ymin != m_ymax)); }
bool Load( const char *filename );
void Cleanup(); // free texture, free tex, set make tex NULL
bool SetExtentsMM(); // set extents by ET mapcoordsmaxs/mapcoordsmins
bool SetExtentsSel(); // set extents by selection
void Render();
bool Valid() { return ( m_tex && ( m_xmin != m_xmax ) && ( m_ymin != m_ymax ) ); }
};
class CBackgroundRender : public IGL2DWindow {
public:
CBackgroundRender();
virtual ~CBackgroundRender();
CBackgroundRender();
virtual ~CBackgroundRender();
protected:
int refCount;
int refCount;
public:
// IGL2DWindow IGL3DWindow interface
void IncRef() { refCount++; }
void DecRef() { refCount--; if (refCount <= 0) delete this; }
void Draw2D( VIEWTYPE vt );
void Register();
// IGL2DWindow IGL3DWindow interface
void IncRef() { refCount++; }
void DecRef() {
refCount--; if ( refCount <= 0 ) {
delete this;
}
}
void Draw2D( VIEWTYPE vt );
void Register();
};
extern CBackgroundImage backgroundXY,backgroundXZ,backgroundYZ;
extern CBackgroundRender render;
This diff is collapsed.
/*
Copyright (C) 2003 Reed Mideke.
Copyright (C) 2003 Reed Mideke.
This file is part of GtkRadiant.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GtkRadiant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GtkRadiant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GtkRadiant; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
You should have received a copy of the GNU General Public License
along with GtkRadiant; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//
// bkgrnd2d Plugin dialog box
......@@ -30,6 +30,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
void InitBackgroundDialog();
void ShowBackgroundDialog();
void ShowBackgroundDialogPG(int page);
void ShowBackgroundDialogPG( int page );
#endif // _BKGRND2D_DIALOG_H_
This diff is collapsed.
/*
Copyright (C) 2003 Reed Mideke.
Copyright (C) 2003 Reed Mideke.
This file is part of GtkRadiant.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GtkRadiant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GtkRadiant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GtkRadiant; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
You should have received a copy of the GNU General Public License
along with GtkRadiant; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//
// bkgrnd2d Plugin
......@@ -30,9 +30,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define _PLUGIN_H_
/*!
\todo need general notice about lib purpose etc.
and the external dependencies (such as GLib, STL, mathlib etc.)
*/
\todo need general notice about lib purpose etc.
and the external dependencies (such as GLib, STL, mathlib etc.)
*/
#include <stdio.h>
// for CPtrArray for idata.h
......@@ -63,13 +63,13 @@ extern CSynapseServer* g_pSynapseServer;
class CSynapseClientBkgrnd2d : public CSynapseClient
{
public:
// CSynapseClient API
bool RequestAPI(APIDescriptor_t *pAPI);
const char* GetInfo();
const char* GetName();
// CSynapseClient API
bool RequestAPI( APIDescriptor_t *pAPI );
const char* GetInfo();
const char* GetName();
CSynapseClientBkgrnd2d() { }
virtual ~CSynapseClientBkgrnd2d() { }
CSynapseClientBkgrnd2d() { }
virtual ~CSynapseClientBkgrnd2d() { }
};
#define MSG_PREFIX "bkgrnd2d: "
#define MSG_WARN "bkgrnd2d WARNING: "
......
/*
BobToolz plugin for GtkRadiant
Copyright (C) 2001 Gordon Biggans
BobToolz plugin for GtkRadiant
Copyright (C) 2001 Gordon Biggans
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.