Skip to content

Instantly share code, notes, and snippets.

@itsoli
Created October 6, 2015 08:43
Show Gist options
  • Save itsoli/989bec045637b47ecfe2 to your computer and use it in GitHub Desktop.
Save itsoli/989bec045637b47ecfe2 to your computer and use it in GitHub Desktop.
lldb data formatter
type summary add glm::vec2 --summary-string "x=${var.x}, y=${var.y}"
type summary add glm::vec3 --summary-string "x=${var.x}, y=${var.y}, z=${var.z}"
type summary add glm::vec4 --summary-string "x=${var.x}, y=${var.y}, z=${var.z}, w=${var.w}"
type summary add glm::quat --summary-string "x=${var.x}, y=${var.y}, z=${var.z}, w=${var.w}"
type summary add glm::mat2 --summary-string "${var.value[0].x}, ${var.value[0].y} | ${var.value[1].x}, ${var.value[1].y}"
type summary add glm::mat3 --summary-string "${var.value[0].x}, ${var.value[0].y}, ${var.value[0].z} | ${var.value[1].x}, ${var.value[1].y}, ${var.value[1].z} | ${var.value[2].x}, ${var.value[2].y}, ${var.value[2].z}"
type summary add glm::mat4 --summary-string "${var.value[0].x}, ${var.value[0].y}, ${var.value[0].z}, ${var.value[0].w} | ${var.value[1].x}, ${var.value[1].y}, ${var.value[1].z}, ${var.value[1].w} | ${var.value[2].x}, ${var.value[2].y}, ${var.value[2].z}, ${var.value[2].w} | ${var.value[3].x}, ${var.value[3].y}, ${var.value[3].z}, ${var.value[3].w}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment