convert pragma once to include guards

This commit is contained in:
Jeremie Roy 2013-05-15 15:01:38 +02:00
Родитель def7541538
Коммит fe41a9f6b8
4 изменённых файлов: 14 добавлений и 5 удалений

Просмотреть файл

@ -1,7 +1,6 @@
/* Copyright 2013 Jeremie Roy. All rights reserved. /* Copyright 2013 Jeremie Roy. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause * License: http://www.opensource.org/licenses/BSD-2-Clause
*/ */
#pragma once
#include "cube_atlas.h" #include "cube_atlas.h"
#include <bx/bx.h> #include <bx/bx.h>
#include <bgfx.h> #include <bgfx.h>

Просмотреть файл

@ -1,7 +1,8 @@
/* Copyright 2013 Jeremie Roy. All rights reserved. /* Copyright 2013 Jeremie Roy. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause * License: http://www.opensource.org/licenses/BSD-2-Clause
*/ */
#pragma once #ifndef __CUBE_ATLAS_H__
#define __CUBE_ATLAS_H__
/// Inspired from texture-atlas from freetype-gl (http://code.google.com/p/freetype-gl/) /// Inspired from texture-atlas from freetype-gl (http://code.google.com/p/freetype-gl/)
/// by Nicolas Rougier (Nicolas.Rougier@inria.fr) /// by Nicolas Rougier (Nicolas.Rougier@inria.fr)
@ -130,4 +131,5 @@ private:
AtlasRegion* m_regions; AtlasRegion* m_regions;
uint8_t* m_textureBuffer; uint8_t* m_textureBuffer;
}; };
#endif // __CUBE_ATLAS_H__

Просмотреть файл

@ -1,7 +1,9 @@
/* Copyright 2013 Jeremie Roy. All rights reserved. /* Copyright 2013 Jeremie Roy. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause * License: http://www.opensource.org/licenses/BSD-2-Clause
*/ */
#pragma once #ifndef __FONT_MANAGER_H__
#define __FONT_MANAGER_H__
#include <bgfx.h> #include <bgfx.h>
#include <bx/handlealloc.h> #include <bx/handlealloc.h>
@ -200,3 +202,5 @@ private:
//temporary buffer to raster glyph //temporary buffer to raster glyph
uint8_t* m_buffer; uint8_t* m_buffer;
}; };
#endif // __FONT_MANAGER_H__

Просмотреть файл

@ -1,7 +1,9 @@
/* Copyright 2013 Jeremie Roy. All rights reserved. /* Copyright 2013 Jeremie Roy. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause * License: http://www.opensource.org/licenses/BSD-2-Clause
*/ */
#pragma once #ifndef __TEXT_BUFFER_MANAGER_H__
#define __TEXT_BUFFER_MANAGER_H__
#include "font_manager.h" #include "font_manager.h"
BGFX_HANDLE(TextBufferHandle); BGFX_HANDLE(TextBufferHandle);
@ -91,3 +93,5 @@ private:
float m_height; float m_height;
float m_width; float m_width;
}; };
#endif // __TEXT_BUFFER_MANAGER_H__