Created
December 13, 2020 12:47
-
-
Save flufy3d/afbc5edc826f66325fad6eeb92da8f44 to your computer and use it in GitHub Desktop.
c++ 11 can embed raw text into code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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