convert pragma once to include guards

This commit is contained in:
Jeremie Roy 2013-05-15 15:01:38 +02:00
parent def7541538
commit fe41a9f6b8
4 changed files with 14 additions and 5 deletions

View file

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

View file

@ -1,7 +1,8 @@
/* Copyright 2013 Jeremie Roy. All rights reserved.
* 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/)
/// by Nicolas Rougier (Nicolas.Rougier@inria.fr)
@ -131,3 +132,4 @@ private:
uint8_t* m_textureBuffer;
};
#endif // __CUBE_ATLAS_H__

View file

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

View file

@ -1,7 +1,9 @@
/* Copyright 2013 Jeremie Roy. All rights reserved.
* 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"
BGFX_HANDLE(TextBufferHandle);
@ -91,3 +93,5 @@ private:
float m_height;
float m_width;
};
#endif // __TEXT_BUFFER_MANAGER_H__