~unity-team/nux/nux.remove-deprecated

« back to all changes in this revision

Viewing changes to NuxGraphics/GraphicsDisplayX11.h

  • Committer: Tarmac
  • Author(s): Jay Taoko, Michi Henning
  • Date: 2012-10-11 18:57:49 UTC
  • mfrom: (686.3.4 nux.nstring-removal)
  • Revision ID: tarmac-20121011185749-v8y4evu36vue3rfx
* Removal of nux::NString in favor of std::string.
* The branch has a lot of changes due to the enablement of -Werror. All the warnings have been fixed.
* -Werror is disabled when building with --enable-debug.

[Test] The changes are covered by existing tests.. Fixes: https://bugs.launchpad.net/bugs/1065293. Approved by Jay Taoko.

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
    }
424
424
#endif
425
425
 
426
 
    NString FindResourceLocation(const char *ResourceFileName, bool ErrorOnFail = false);
427
 
    NString FindUITextureLocation(const char *ResourceFileName, bool ErrorOnFail = false);
428
 
    NString FindShaderLocation(const char *ResourceFileName, bool ErrorOnFail = false);
429
 
    NString FindFontLocation(const char *ResourceFileName, bool ErrorOnFail = false);
 
426
    std::string FindResourceLocation(const char *ResourceFileName, bool ErrorOnFail = false);
 
427
    std::string FindUITextureLocation(const char *ResourceFileName, bool ErrorOnFail = false);
 
428
    std::string FindShaderLocation(const char *ResourceFileName, bool ErrorOnFail = false);
 
429
    std::string FindFontLocation(const char *ResourceFileName, bool ErrorOnFail = false);
430
430
 
431
 
    const std::vector<NString>& GetFontSearchPath() const
 
431
    const std::vector<std::string>& GetFontSearchPath() const
432
432
    {
433
433
      return m_FontSearchPath;
434
434
    }
435
 
    const std::vector<NString>& GetShaderSearchPath() const
 
435
    const std::vector<std::string>& GetShaderSearchPath() const
436
436
    {
437
437
      return m_ShaderSearchPath;
438
438
    }
439
 
    const std::vector<NString>& GetUITextureSearchPath() const
 
439
    const std::vector<std::string>& GetUITextureSearchPath() const
440
440
    {
441
441
      return m_UITextureSearchPath;
442
442
    }
443
443
 
444
444
  private:
445
 
    std::vector<NString> m_FontSearchPath;
446
 
    std::vector<NString> m_ShaderSearchPath;
447
 
    std::vector<NString> m_UITextureSearchPath;
 
445
    std::vector<std::string> m_FontSearchPath;
 
446
    std::vector<std::string> m_ShaderSearchPath;
 
447
    std::vector<std::string> m_UITextureSearchPath;
448
448
    FilePath m_ResourcePathLocation;
449
449
 
450
450
    GraphicsDisplay();