Changeset - r26497:5a0a2e4c3e8b
[Not reviewed]
master
0 6 0
PeterN - 20 months ago 2022-11-02 00:24:31
peter1138@openttd.org
Cleanup: Remove svn-style `$Id$` comments. (#10122)
6 files changed with 0 insertions and 12 deletions:
0 comments (0 inline, 0 general)
src/blitter/40bpp_anim.cpp
Show inline comments
 
/* $Id$ */
 

	
 
/*
 
 * This file is part of OpenTTD.
 
 * OpenTTD 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, version 2.
 
 * OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file 40bpp_optimized.cpp Implementation of the optimized 40 bpp blitter. */
 

	
 
#include "../stdafx.h"
 
#include "../zoom_func.h"
 
#include "../settings_type.h"
 
#include "../video/video_driver.hpp"
 
#include "40bpp_anim.hpp"
 
#include "common.hpp"
 

	
 
#include "../table/sprites.h"
 

	
 
#include "../safeguards.h"
 

	
 

	
 
/** Instantiation of the 40bpp with animation blitter factory. */
 
static FBlitter_40bppAnim iFBlitter_40bppAnim;
 

	
src/blitter/40bpp_anim.hpp
Show inline comments
 
/* $Id$ */
 

	
 
/*
 
 * This file is part of OpenTTD.
 
 * OpenTTD 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, version 2.
 
 * OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file 40bpp_optimized.hpp Optimized 40 bpp blitter. */
 

	
 
#ifndef BLITTER_40BPP_OPTIMIZED_HPP
 
#define BLITTER_40BPP_OPTIMIZED_HPP
 

	
 

	
 
#include "32bpp_optimized.hpp"
 
#include "../video/video_driver.hpp"
 

	
 
/** The optimized 40 bpp blitter (for OpenGL video driver). */
 
class Blitter_40bppAnim : public Blitter_32bppOptimized {
 
public:
 

	
 
	// void *MoveTo(void *video, int x, int y) override;
 
	void SetPixel(void *video, int x, int y, uint8 colour) override;
 
	void DrawRect(void *video, int width, int height, uint8 colour) override;
 
	void DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, uint8 colour, int width, int dash) override;
src/misc/lrucache.hpp
Show inline comments
 
/* $Id$ */
 

	
 
/*
 
 * This file is part of OpenTTD.
 
 * OpenTTD 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, version 2.
 
 * OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file lrucache.hpp Size limited cache map with a least recently used eviction strategy. */
 

	
 
#ifndef LRUCACHE_HPP
 
#define LRUCACHE_HPP
 

	
 
#include <utility>
 
#include <list>
 
#include <functional>
 
#include <unordered_map>
 
#include <stdexcept>
 

	
 
/**
 
 * Size limited cache with a least recently used eviction strategy.
 
 * @tparam Tkey Type of the cache key.
 
 * @tparam Tdata Type of the cache item. The cache will store a pointer of this type.
 
 */
 
template <class Tkey, class Tdata>
src/table/opengl_shader.h
Show inline comments
 
/* $Id$ */
 

	
 
/*
 
 * This file is part of OpenTTD.
 
 * OpenTTD 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, version 2.
 
 * OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file opengl_shader.h OpenGL shader programs. */
 

	
 
/** Vertex shader that positions a sprite on screen.. */
 
static const char *_vertex_shader_sprite[] = {
 
	"#version 110\n",
 
	"uniform vec4 sprite;",
 
	"uniform vec2 screen;",
 
	"attribute vec2 position, colour_uv;",
 
	"varying vec2 colour_tex_uv;",
 
	"void main() {",
 
	"  vec2 size = sprite.zw / screen.xy;",
 
	"  vec2 offset = ((2.0 * sprite.xy + sprite.zw) / screen.xy - 1.0) * vec2(1.0, -1.0);",
 
	"  colour_tex_uv = colour_uv;",
 
	"  gl_Position = vec4(position * size + offset, 0.0, 1.0);",
 
	"}",
 
};
 

	
src/video/opengl.cpp
Show inline comments
 
/* $Id$ */
 

	
 
/*
 
 * This file is part of OpenTTD.
 
 * OpenTTD 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, version 2.
 
 * OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file opengl_v.cpp OpenGL video driver support. */
 

	
 
#include "../stdafx.h"
 

	
 
/* Define to disable buffer syncing. Will increase max fast forward FPS but produces artifacts. Mainly useful for performance testing. */
 
// #define NO_GL_BUFFER_SYNC
 
/* Define to allow software rendering backends. */
 
// #define GL_ALLOW_SOFTWARE_RENDERER
 

	
 
#if defined(_WIN32)
 
#	include <windows.h>
 
#endif
 

	
 
#define GL_GLEXT_PROTOTYPES
 
#if defined(__APPLE__)
 
#	define GL_SILENCE_DEPRECATION
 
#	include <OpenGL/gl3.h>
src/video/opengl.h
Show inline comments
 
/* $Id$ */
 

	
 
/*
 
 * This file is part of OpenTTD.
 
 * OpenTTD 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, version 2.
 
 * OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file opengl.h OpenGL video driver support. */
 

	
 
#ifndef VIDEO_OPENGL_H
 
#define VIDEO_OPENGL_H
 

	
 
#include "../core/alloc_type.hpp"
 
#include "../core/geometry_type.hpp"
 
#include "../gfx_type.h"
 
#include "../spriteloader/spriteloader.hpp"
 
#include "../misc/lrucache.hpp"
 

	
 
typedef void (*OGLProc)();
 
typedef OGLProc (*GetOGLProcAddressProc)(const char *proc);
 

	
 
bool IsOpenGLVersionAtLeast(byte major, byte minor);
 
const char *FindStringInExtensionList(const char *string, const char *substring);
 

	
0 comments (0 inline, 0 general)