Skip to content

Instantly share code, notes, and snippets.

@flufy3d
Created December 13, 2020 12:47
Show Gist options
  • Save flufy3d/afbc5edc826f66325fad6eeb92da8f44 to your computer and use it in GitHub Desktop.
Save flufy3d/afbc5edc826f66325fad6eeb92da8f44 to your computer and use it in GitHub Desktop.
c++ 11 can embed raw text into code
const char* vert =
R"END(
#version 120
attribute vec2 position;
void main()
{
gl_Position = vec4( position, 0.0, 1.0 );
}
)END";
static void
gst_azure_kinect_src_init (GstAzureKinectSrc * azurekinectsrc)
{
gst_base_src_set_format (GST_BASE_SRC (azurekinectsrc), GST_FORMAT_TIME);
gst_base_src_set_live (GST_BASE_SRC (azurekinectsrc), DEFAULT_IS_LIVE);
azurekinectsrc->silent = FALSE;
GST_DEBUG_OBJECT (azurekinectsrc,
"%s" ,vert);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment