Changeset 2457


Ignore:
Timestamp:
Feb 20, 2013, 11:42:37 AM (10 years ago)
Author:
touky
Message:

easymesh : Tweak previous crashfix.

Location:
trunk/src/easymesh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/easymesh.cpp

    r2456 r2457  
    372372{
    373373    EasyMeshCompiler mc(*this);
    374     bool res = mc.ParseString(command);
     374    return mc.ParseString(command);
     375}
     376
     377//-----------------------------------------------------------------------------
     378void EasyMesh::OpenBrace()
     379{
     380    m_cursors.Push(m_vert.Count(), m_indices.Count());
     381}
     382
     383//-----------------------------------------------------------------------------
     384void EasyMesh::CloseBrace()
     385{
     386    m_cursors.Pop();
     387}
     388//-----------------------------------------------------------------------------
     389void EasyMesh::MeshConvert(GpuShaderData* new_gpu_sdata)
     390{
    375391    delete(m_build_data);
    376392    m_build_data = NULL;
    377     return res;
    378 }
    379 
    380 //-----------------------------------------------------------------------------
    381 void EasyMesh::OpenBrace()
    382 {
    383     m_cursors.Push(m_vert.Count(), m_indices.Count());
    384 }
    385 
    386 //-----------------------------------------------------------------------------
    387 void EasyMesh::CloseBrace()
    388 {
    389     m_cursors.Pop();
    390 }
    391 //-----------------------------------------------------------------------------
    392 void EasyMesh::MeshConvert(GpuShaderData* new_gpu_sdata)
    393 {
     393
    394394    if (new_gpu_sdata)
    395395    {
  • trunk/src/easymesh/easymesh.h

    r2456 r2457  
    2121namespace lol
    2222{
     23
     24//Utility enum for renderers
     25struct MeshRender
     26{
     27    enum Value
     28    {
     29        NeedInit,
     30        CanRender,
     31        IgnoreRender
     32    }
     33    m_value;
     34
     35    inline MeshRender(Value v) : m_value(v) {}
     36    inline MeshRender() : m_value(NeedInit) {}
     37    inline operator Value() { return m_value; }
     38};
    2339
    2440//Vertex datas for easymesh vertex list.
Note: See TracChangeset for help on using the changeset viewer.