ewol/Sources/ewolOObject.cpp

64 lines
1.1 KiB
C++
Raw Normal View History

2011-10-24 14:52:11 +02:00
/**
*******************************************************************************
* @file ewolOObject.cpp
* @brief ewol OpenGl Object system (Sources)
* @author Edouard DUPIN
* @date 24/10/2011
* @par Project
* ewol
*
* @par Copyright
* Copyright 2011 Edouard DUPIN, all right reserved
*
* This software is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY.
*
* Licence summary :
* You can modify and redistribute the sources code and binaries.
* You can send me the bug-fix
*
* Term of the licence in in the file licence.txt.
*
*******************************************************************************
*/
#include <etkTypes.h>
#include <etkString.h>
#include <ewolOObject.h>
#include <GL/gl.h>
#undef __class__
2011-11-09 09:50:05 +01:00
#define __class__ "ewol::OObject"
2011-10-24 14:52:11 +02:00
2011-11-09 09:50:05 +01:00
ewol::OObject::OObject(void)
{
2011-11-09 09:50:05 +01:00
m_name="";
}
2011-11-09 09:50:05 +01:00
ewol::OObject::~OObject(void)
2011-10-31 11:01:47 +01:00
{
}
2011-11-09 09:50:05 +01:00
void ewol::OObject::SetName(etk::String & name)
2011-10-31 11:01:47 +01:00
{
2011-11-09 09:50:05 +01:00
m_name = name;
2011-10-31 11:01:47 +01:00
}
2011-11-09 09:50:05 +01:00
void ewol::OObject::SetName(const char * name)
2011-10-31 11:01:47 +01:00
{
2011-11-09 09:50:05 +01:00
if (NULL != name) {
m_name = name;
2011-11-08 15:59:25 +01:00
}
2011-10-31 11:01:47 +01:00
}
2011-11-09 09:50:05 +01:00
etk::String ewol::OObject::GetName(void)
2011-11-08 15:59:25 +01:00
{
2011-11-09 09:50:05 +01:00
return m_name;
2011-11-08 15:59:25 +01:00
}
2011-10-31 11:01:47 +01:00