_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

shaders.h
Go to the documentation of this file.
1 #ifndef __SHADERS_H__
2 #define __SHADERS_H__
3 
4 #include <SDL.h>
5 
6 #ifndef __APPLE__
7 extern bool LoadShaderExtensions();
8 extern bool RenderWithShader(SDL_Renderer *renderer, SDL_Window* win, SDL_Texture* backBuffer);
9 #else
10 #include "stratagus.h"
11 
12 inline bool LoadShaderExtensions() {
13  return false;
14 }
15 
16 inline bool RenderWithShader(SDL_Renderer*, SDL_Window*, SDL_Texture*) {
17  return false;
18 }
19 #endif
20 
21 #endif
RenderWithShader
bool RenderWithShader(SDL_Renderer *renderer, SDL_Window *win, SDL_Texture *backBuffer)
Definition: shaders.cpp:277
LoadShaderExtensions
bool LoadShaderExtensions()
Definition: shaders.cpp:485
stratagus.h
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.