Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -upr glclock-6.0b6.0.orig/GLObject.H glclock-6.0b6.0/GLObject.H
- --- glclock-6.0b6.0.orig/GLObject.H Thu Jun 22 23:36:07 2000
- +++ glclock-6.0b6.0/GLObject.H Fri Aug 25 17:16:46 2017
- @@ -11,7 +11,7 @@
- #pragma warning(disable : 4051) // ALPHA
- #endif
- -#include <iostream.h>
- +#include <iostream>
- #include "GLextensions.H"
- #include "PnmIO.H"
- @@ -269,7 +269,7 @@ class Vector3d (public)
- static const Vector3d white ;
- } ;
- -ostream& operator <<(ostream& os, Vector3d& vec) ;
- +std::ostream& operator <<(std::ostream& os, Vector3d& vec) ;
- inline GLfloat* VectorToArray(GLfloat v[3], const Vector3d& vec)
- {
- diff -upr glclock-6.0b6.0.orig/GLObject.cpp glclock-6.0b6.0/GLObject.cpp
- --- glclock-6.0b6.0.orig/GLObject.cpp Sun Jun 18 23:25:39 2000
- +++ glclock-6.0b6.0/GLObject.cpp Fri Aug 25 18:32:54 2017
- @@ -1371,7 +1371,7 @@ Vector3d ChangeSaturation(Vector3d src, float vividnes
- }
- -ostream& operator <<(ostream& os, const Vector3d& vec)
- +std::ostream& operator <<(std::ostream& os, const Vector3d& vec)
- {
- os << vec.X() << ", " << vec.Y() << ", " << vec.Z() ;
- return os ;
- diff -upr glclock-6.0b6.0.orig/GLextensions.H glclock-6.0b6.0/GLextensions.H
- --- glclock-6.0b6.0.orig/GLextensions.H Thu Jun 22 23:36:07 2000
- +++ glclock-6.0b6.0/GLextensions.H Fri Aug 25 18:34:48 2017
- @@ -202,7 +202,7 @@ float GetOpenGLVersion() ;
- // multitexture をサポートするバージョン(未定)
- -#ifdef GL_VERSION_1_
- +#ifdef GL_VERSION_1_3
- #define GL_VERSION_multitexture
- #endif
- #define GL_VERSION_multitexture_F 9999.9f
- @@ -214,7 +214,7 @@ float GetOpenGLVersion() ;
- #define GL_VERSION_separate_specular_color_F 1.2f
- // texture_filter_anisotropic をサポートするバージョン(未定)
- -#ifdef GL_VERSION_1_
- +#ifdef GL_VERSION_1_2
- #define GL_VERSION_texture_filter_anisotropic
- #endif
- #define GL_VERSION_texture_filter_anisotropic_F 9999.9f
- @@ -232,25 +232,25 @@ float GetOpenGLVersion() ;
- #define GL_VERSION_polygon_offset_F 1.1f
- // texture_cube_map をサポートするバージョン(未定)
- -#ifdef GL_VERSION_1_
- +#ifdef GL_VERSION_1_3
- #define GL_VERSION_texture_cube_map
- #endif
- #define GL_VERSION_texture_cube_map_F 9999.9f
- // texture_compression をサポートするバージョン(未定)
- -#ifdef GL_VERSION_1_
- +#ifdef GL_VERSION_1_3
- #define GL_VERSION_texture_compression
- #endif
- #define GL_VERSION_texture_compression_F 9999.9f
- // texture_compression_s3tc をサポートするバージョン(サポートされる訳ない?)
- -#ifdef GL_VERSION_1_
- +#ifdef GL_VERSION_1_3
- #define GL_VERSION_texture_compression_s3tc
- #endif
- #define GL_VERSION_texture_compression_s3tc_F 9999.9f
- // texture_compression_FXT1 をサポートするバージョン(サポートされる訳ない?)
- -#ifdef GL_VERSION_1_
- +#ifdef GL_VERSION_1_3
- #define GL_VERSION_texture_compression_FXT1
- #endif
- #define GL_VERSION_texture_compression_FXT1_F 9999.9f
- diff -upr glclock-6.0b6.0.orig/GLextensions.cpp glclock-6.0b6.0/GLextensions.cpp
- --- glclock-6.0b6.0.orig/GLextensions.cpp Sun Jun 18 23:25:12 2000
- +++ glclock-6.0b6.0/GLextensions.cpp Fri Aug 25 18:46:33 2017
- @@ -640,7 +640,7 @@ GLfloat GetMaxTextureMaxAnisotropy()
- GLfloat maxTextureMaxAnisotropy ;
- GLenum errCode = glGetError() ;
- - glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY, &maxTextureMaxAnisotropy) ; // maximum degree of anisotropy
- + glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &maxTextureMaxAnisotropy) ; // maximum degree of anisotropy
- // for fixing nVIDIA old driver's anisotropic filtering error...
- // ignore "Invalid Enum" Error
- @@ -1026,10 +1026,10 @@ int IsSupported_EXT_texture_object()
- return FALSE ;
- #endif // #if defined(WIN32) && !defined(MESA)
- - p_glGenTextures = glGenTexturesEXT ;
- - p_glDeleteTextures = glDeleteTexturesEXT ;
- - p_glBindTexture = glBindTextureEXT ;
- - p_glIsTexture = glIsTextureEXT ;
- + p_glGenTextures = glGenTextures ;
- + p_glDeleteTextures = glDeleteTextures ;
- + p_glBindTexture = glBindTexture ;
- + p_glIsTexture = glIsTexture ;
- current_TextureObjectInterfaceName = CURRENT_NAME_GL_EXT_texture_object ;
- current_TextureObjectInterfaceNameString = current_TextureObjectInterfaceName ;
- @@ -1108,7 +1108,7 @@ int IsSupported_EXT_polygon_offset()
- return FALSE ;
- #endif // #if defined(WIN32) && !defined(MESA)
- - p_glPolygonOffset = glPolygonOffsetEXT ;
- + p_glPolygonOffset = glPolygonOffset ;
- DEF_GL_POLYGON_OFFSET_POINT = GL_POLYGON_OFFSET_EXT ; // EXT_polygon_offset では、すべて共通(有効なのは FILL のみ?)
- DEF_GL_POLYGON_OFFSET_LINE = GL_POLYGON_OFFSET_EXT ;
- @@ -1446,10 +1446,10 @@ GLint InternalFormat(String str)
- // Is texture_compression_s3tc available
- if (current_TextureCompressionS3TCInterfaceName)
- {
- - if (str / "GL_COMPRESSED_RGB_S3TC_DXT1") format = GL_COMPRESSED_RGB_S3TC_DXT1 ;
- - else if (str / "GL_COMPRESSED_RGBA_S3TC_DXT1") format = GL_COMPRESSED_RGBA_S3TC_DXT1 ;
- - else if (str / "GL_COMPRESSED_RGBA_S3TC_DXT3") format = GL_COMPRESSED_RGBA_S3TC_DXT3 ;
- - else if (str / "GL_COMPRESSED_RGBA_S3TC_DXT5") format = GL_COMPRESSED_RGBA_S3TC_DXT5 ;
- + if (str / "GL_COMPRESSED_RGB_S3TC_DXT1") format = GL_COMPRESSED_RGB_S3TC_DXT1_EXT ;
- + else if (str / "GL_COMPRESSED_RGBA_S3TC_DXT1") format = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT ;
- + else if (str / "GL_COMPRESSED_RGBA_S3TC_DXT3") format = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT ;
- + else if (str / "GL_COMPRESSED_RGBA_S3TC_DXT5") format = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT ;
- }
- else
- {
- @@ -1463,8 +1463,8 @@ GLint InternalFormat(String str)
- // Is texture_compression_FXT1 available
- if (current_TextureCompressionFXT1InterfaceName)
- {
- - if (str / "GL_COMPRESSED_RGB_FXT1") format = GL_COMPRESSED_RGB_FXT1 ;
- - else if (str / "GL_COMPRESSED_RGBA_FXT1") format = GL_COMPRESSED_RGBA_FXT1 ;
- + if (str / "GL_COMPRESSED_RGB_FXT1") format = GL_COMPRESSED_RGB_FXT1_3DFX ;
- + else if (str / "GL_COMPRESSED_RGBA_FXT1") format = GL_COMPRESSED_RGBA_FXT1_3DFX ;
- }
- else
- {
- @@ -1646,14 +1646,14 @@ String InternalFormatString(GLint internalFormat)
- case GL_COMPRESSED_RGBA: str = "GL_COMPRESSED_RGBA" ; break ;
- // s3tc format
- - case GL_COMPRESSED_RGB_S3TC_DXT1: str = "GL_COMPRESSED_RGB_S3TC_DXT1" ; break ;
- - case GL_COMPRESSED_RGBA_S3TC_DXT1: str = "GL_COMPRESSED_RGBA_S3TC_DXT1" ; break ;
- - case GL_COMPRESSED_RGBA_S3TC_DXT3: str = "GL_COMPRESSED_RGBA_S3TC_DXT3" ; break ;
- - case GL_COMPRESSED_RGBA_S3TC_DXT5: str = "GL_COMPRESSED_RGBA_S3TC_DXT5" ; break ;
- + case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: str = "GL_COMPRESSED_RGB_S3TC_DXT1" ; break ;
- + case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: str = "GL_COMPRESSED_RGBA_S3TC_DXT1" ; break ;
- + case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT: str = "GL_COMPRESSED_RGBA_S3TC_DXT3" ; break ;
- + case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: str = "GL_COMPRESSED_RGBA_S3TC_DXT5" ; break ;
- // FXT1 format
- - case GL_COMPRESSED_RGB_FXT1: str = "GL_COMPRESSED_RGB_FXT1" ; break ;
- - case GL_COMPRESSED_RGBA_FXT1: str = "GL_COMPRESSED_RGBA_FXT1" ; break ;
- + case GL_COMPRESSED_RGB_FXT1_3DFX: str = "GL_COMPRESSED_RGB_FXT1" ; break ;
- + case GL_COMPRESSED_RGBA_FXT1_3DFX: str = "GL_COMPRESSED_RGBA_FXT1" ; break ;
- default:
- str = "Unknown format" ; break ;
- diff -upr glclock-6.0b6.0.orig/MString.H glclock-6.0b6.0/MString.H
- --- glclock-6.0b6.0.orig/MString.H Thu Jun 22 23:58:26 2000
- +++ glclock-6.0b6.0/MString.H Fri Aug 25 18:50:16 2017
- @@ -66,7 +66,7 @@
- #ifndef ___STRING_H___
- #define ___STRING_H___
- -#include <iostream.h>
- +#include <iostream>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- @@ -396,8 +396,8 @@ class String
- String& operator *=(int n) ;
- // 入出力オペレータ
- - friend ostream& operator <<(ostream& os, const String& s) ;
- - friend istream& operator >>(istream& is, String& s) ;
- + friend std::ostream& operator <<(std::ostream& os, const String& s) ;
- + friend std::istream& operator >>(std::istream& is, String& s) ;
- // 拡張
- diff -upr glclock-6.0b6.0.orig/MString.cpp glclock-6.0b6.0/MString.cpp
- --- glclock-6.0b6.0.orig/MString.cpp Thu Jun 22 23:58:41 2000
- +++ glclock-6.0b6.0/MString.cpp Fri Aug 25 18:54:39 2017
- @@ -1,6 +1,9 @@
- #include "MString.H"
- +String Left(const String &, int);
- +String Mid(String, int, int);
- +String Right(const String &, int);
- // コンストラクタ
- String::String(int n)
- @@ -1060,12 +1063,12 @@ String& String::operator *=(int n)
- }
- // 入出力オペレータ
- -ostream& operator <<(ostream& os, const String& s)
- +std::ostream& operator <<(std::ostream& os, const String& s)
- {
- os << s.str ;
- return os ;
- }
- -istream& operator >>(istream& is, String& s)
- +std::istream& operator >>(std::istream& is, String& s)
- {
- is >> s.str ;
- return is ;
- diff -upr glclock-6.0b6.0.orig/glclock.cpp glclock-6.0b6.0/glclock.cpp
- --- glclock-6.0b6.0.orig/glclock.cpp Mon Jun 26 02:39:00 2000
- +++ glclock-6.0b6.0/glclock.cpp Fri Aug 25 18:35:28 2017
- @@ -844,7 +844,7 @@ void UpdateOpenGLAnisotropy(float anisotropy = -1.0f)
- anisotropy = 1.0f ;
- // 可能であれば、Anisotropic Filtering を有効に
- - glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY, anisotropy) ;
- + glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, anisotropy) ;
- }
- diff -upr glclock-6.0b6.0.orig/makefile glclock-6.0b6.0/makefile
- --- glclock-6.0b6.0.orig/makefile Sun Jun 18 23:37:40 2000
- +++ glclock-6.0b6.0/makefile Fri Aug 25 16:37:36 2017
- @@ -15,8 +15,8 @@
- LINKER = g++
- OPT = -O2
- - INCLUDE_PATH = -I/usr/X11R6/include
- - LIB_PATH = -L/usr/X11R6/lib
- + INCLUDE_PATH = -I/usr/X11R6/include -I/usr/local/include
- + LIB_PATH = -L/usr/X11R6/lib -L/usr/local/lib
- LIBS = -lglut -lGLU -lGL -lXi -lXmu -lXext -lX11 -lm
- MARK_LIBS = -lm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement