head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.42 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.40 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.38 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.36 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.34 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.32 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.30 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.28 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.26 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.24 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.22 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.20 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.18 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.16 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.14 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.12 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.10 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.8 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.6 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.4 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.2 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.1.1.1.0.4 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.2 netbsd-1-6-1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2005.06.02.14.24.04; author blymn; state dead; branches; next 1.3; 1.3 date 2005.03.16.12.41.51; author rillig; state Exp; branches; next 1.2; 1.2 date 2003.12.13.10.32.53; author xtraeme; state dead; branches; next 1.1; 1.1 date 2002.09.24.12.49.13; author blymn; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.09.24.12.49.13; author blymn; state Exp; branches; next ; desc @@ 1.4 log @Updated to version 2.0.2 of bzflag: * many many bug fixes * network protocol version updated * new game modes added @ text @$NetBSD: patch-ag,v 1.3 2005/03/16 12:41:51 rillig Exp $ tolower is a macro on NetBSD-1.6.2. --- include/TextUtils.h.orig Wed May 12 22:10:51 2004 +++ include/TextUtils.h Tue Mar 15 23:59:22 2005 @@@@ -43,7 +43,7 @@@@ public: /** returns a string converted to lowercase */ - inline static std::string tolower(const std::string& s) + inline static std::string bz_tolower(const std::string& s) { std::string trans = s; @@@@ -55,7 +55,7 @@@@ public: /** returns a string converted to uppercase */ - inline static std::string toupper(const std::string& s) + inline static std::string bz_toupper(const std::string& s) { std::string trans = s; std::transform (trans.begin(), trans.end(), // source @ 1.3 log @Renamed a method tolower to bz_tolower to avoid namespace collisions. Approved by wiz. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Updated to 1.10.0. The ChangeLog is huge. Selected new features include: * vote based kicking * tunable game parameters like gravity and world size * smarter bots * world weapons * bzadmin text client * autopilot * rabbit game style * single port networking And more... please review Changelog for a detailed list of changes. pkgsrc changes: o USE_X11BASE not needed anymore. I'm sorry, only tested on NetBSD/FreeBSD x86, I need more hardware... @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.1 2002/09/24 12:49:13 blymn Exp $ d3 22 a24 65 --- src/platform/NetBSDPlatformFactory.cxx.orig Sun Sep 22 22:29:02 2002 +++ src/platform/NetBSDPlatformFactory.cxx @@@@ -0,0 +1,62 @@@@ +/* bzflag + * Copyright (c) 1993 - 2002 Tim Riker + * + * This package is free software; you can redistribute it and/or + * modify it under the terms of the license found in the file + * named LICENSE that should have accompanied this file. + * + * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#include "NetBSDPlatformFactory.h" +#include "NetBSDDisplay.h" +#include "XVisual.h" +#include "XWindow.h" +#include "NetBSDMedia.h" + +PlatformFactory* PlatformFactory::getInstance() +{ + if (!instance) instance = new NetBSDPlatformFactory; + return instance; +} + +NetBSDPlatformFactory::NetBSDPlatformFactory() +{ + // do nothing +} + +NetBSDPlatformFactory::~NetBSDPlatformFactory() +{ + // do nothing +} + +BzfDisplay* NetBSDPlatformFactory::createDisplay( + const char* name, const char*) +{ + XDisplay* display = new XDisplay(name, new NetBSDDisplayMode); + if (!display || !display->isValid()) { + delete display; + return NULL; + } + return display; +} + +BzfVisual* NetBSDPlatformFactory::createVisual( + const BzfDisplay* display) +{ + return new XVisual((const XDisplay*)display); +} + +BzfWindow* NetBSDPlatformFactory::createWindow( + const BzfDisplay* display, BzfVisual* visual) +{ + return new XWindow((const XDisplay*)display, (XVisual*)visual); +} + +BzfMedia* NetBSDPlatformFactory::createMedia() +{ + return new NetBSDMedia; +} +// ex: shiftwidth=2 tabstop=8 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @bzflag is an OpenGL based multiplayer tank game. @ text @@