コード例 #1
0
ファイル: pango_cairo.hpp プロジェクト: MaikKlein/OglplusGen
	Layout MakeLayout(const Font& font, StrCRef str)
	{
		CodePoints cps;
		UTF8ToCodePoints(str.begin(), str.size(), cps);

		Layout layout(MakeLayout(font, str.size()));
		layout.Set(cps.data(), cps.size());
		return std::move(layout);
	}
コード例 #2
0
ファイル: debug_output.hpp プロジェクト: r-lyeh-forks/oglplus
		/**
		 *  @overload
		 *
		 *  @glsymbols
		 *  @glfunref{PushDebugGroup}
		 */
		Group(
			DebugOutputSource source,
			GLuint id,
			StrCRef message
		)
		{
			OGLPLUS_GLFUNC(PushDebugGroup)(
				GLenum(source),
				id,
				message.size(),
				message.begin()
			);
			OGLPLUS_VERIFY_SIMPLE(PushDebugGroup);
		}
コード例 #3
0
ファイル: layout.hpp プロジェクト: matus-chochlik/oglplus
 void Set(StrCRef str) {
     Set(UTF8ToCodePoints(str.begin(), str.size()));
 }
コード例 #4
0
ファイル: layout.hpp プロジェクト: Extrunder/oglplus
	void Set(StrCRef str)
	{
		Set(str.begin(), str.size());
	}
コード例 #5
0
ファイル: glsl_string.hpp プロジェクト: Extrunder/oglplus
	GLSLString(const StrCRef& str)
	 : _str(str.begin())
	 , _len(GLint(str.size()))
	{ }