name
string
code
string
asm
string
file
string
vera::refineSdfLayers(vera::BVH const*, std::vector<vera::Image, std::allocator<vera::Image>>&, float)
void refineSdfLayers(const BVH* _acc, std::vector<Image>& _images, float _dist) { size_t voxel_resolution = _images.size(); float voxel_size = 1.0/float(voxel_resolution); size_t triangles_total = _acc->elements.size(); glm::vec3 bdiagonal = _acc->getDiagonal(); float max_dist ...
pushq %rbp movq %rsp, %rbp subq $0x1d0, %rsp # imm = 0x1D0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movq -0x10(%rbp), %rdi callq 0x28d580 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq %rax, %rdx shrq %rdx movl %eax, %ecx andl $0x1, %ecx orq %rdx, %rcx cvtsi2ss %rcx, %xmm0 ad...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/image.cpp
vera::packSprite(std::vector<vera::Image, std::allocator<vera::Image>> const&)
Image packSprite( const std::vector<Image>& _images ) { Image out; if (_images.size() == 0) return out; // Let's asume they are all equal size_t layerWidth = _images[0].getWidth(); size_t layerHeight = _images[0].getHeight(); size_t layerChannels = _images[0].getChannels(); size_t...
pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movq %rdi, -0x118(%rbp) movq %rdi, %rax movq %rax, -0x110(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movb $0x0, -0x11(%rbp) callq 0x38fc20 movq -0x10(%rbp), %rdi callq 0x28d580 cmpq $0x0, %rax jne 0x33429c movb $0x1, -0x11(%rbp) movl $0x1, -0...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/image.cpp
vera::scaleSprite(std::vector<vera::Image, std::allocator<vera::Image>> const&, int)
std::vector<Image> scaleSprite(const std::vector<Image>& _in, int _times) { size_t in_voxel_resolution = _in.size(); size_t out_voxel_resolution = in_voxel_resolution * _times; std::vector<Image> in_scaled; in_scaled.resize(_in.size()); std::vector<std::thread> threads; const int nThreads = st...
pushq %rbp movq %rsp, %rbp subq $0x200, %rsp # imm = 0x200 movq %rdi, -0x1f8(%rbp) movq %rdi, %rax movq %rax, -0x1f0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rdi callq 0x28d580 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movslq -0x14(%rbp), %rcx imulq %rc...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/image.cpp
vera::remap(float const&, float const&, float const&, float const&, float const&, bool)
inline float remap(const float& _value, const float& _inputMin, const float& _inputMax, const float& _outputMin, const float& _outputMax, bool _clamp) { if (fabs(_inputMin - _inputMax) < std::numeric_limits<float>::epsilon()) { return _outputMin; } else { float outVal = ((_value - _inputMin) / (_inputMax - ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %r9b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) andb $0x1, %al movb %al, -0x31(%rbp) movq -0x18(%rbp), %rax movss (%rax), %xmm0 movq -0x20(%rbp), %rax subss (%rax), %xmm0 callq 0x281730 movss %xm...
/patriciogonzalezvivo[P]glslViewer/deps/vera/include/vera/ops/math.h
vera::crossMesh(glm::vec<3, float, (glm::qualifier)0> const&, float)
Mesh crossMesh(const glm::vec3 &_pos, float _width) { glm::vec3 linePoints[4] = { glm::vec3(_pos.x,_pos.y,_pos.z), glm::vec3(_pos.x,_pos.y,_pos.z), glm::vec3(_pos.x,_pos.y,_pos.z), glm::vec3(_pos.x,_pos.y,_pos.z) }; ...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x70(%rbp) movq %rdi, %rax movq %rax, -0x78(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movq -0x10(%rbp), %rax movss (%rax), %xmm0 movss 0x4(%rax), %xmm1 movss 0x8(%rax), %xmm2 leaq -0x50(%rbp), %rdi callq 0x24f590 leaq -0x44(%rbp),...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::rectMesh(float, float, float, float)
Mesh rectMesh(float _x, float _y, float _w, float _h) { float x = _x * 2.0f - 1.0f; float y = _y * 2.0f - 1.0f; float w = _w * 2.0f; float h = _h * 2.0f; Mesh mesh; mesh.addVertex(glm::vec3(x, y, 0.0)); mesh.addColor(glm::vec4(1.0)); mesh.addNormal(glm::vec3(0.0, 0.0, 1.0)); mesh.ad...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x108(%rbp) movq %rdi, %rax movq %rax, -0x100(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movss %xmm2, -0x14(%rbp) movss %xmm3, -0x18(%rbp) movss -0xc(%rbp), %xmm0 addss %xmm0, %xmm0 movss 0x1a78ab(%rip), ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::planeMesh(float, float, int, int, vera::DrawMode)
Mesh planeMesh(float _width, float _height, int _columns, int _rows, DrawMode _drawMode) { Mesh mesh; if (_drawMode != TRIANGLE_STRIP && _drawMode != TRIANGLES) _drawMode = TRIANGLES; _columns++; _rows++; mesh.setDrawMode(_drawMode); glm::vec3 vert(0.0f, 0.0f, 0.0f); glm::vec3 no...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x80(%rbp) movq %rdi, %rax movq %rax, -0x78(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movb $0x0, -0x1d(%rbp) callq 0x39ad10 cmpl $0x5, -0x1c(%rbp) je 0x339719 c...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::boxMesh(float, float, float, int, int, int)
Mesh boxMesh( float _width, float _height, float _depth, int _resX, int _resY, int _resZ ) { // mesh only available as triangles // Mesh mesh; mesh.setDrawMode( TRIANGLES ); _resX = _resX + 1; _resY = _resY + 1; _resZ = _resZ + 1; if ( _resX < 2 ) _resX = 0; if ( _resY < 2 ) _resY = 0...
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq %rdi, -0x118(%rbp) movq %rdi, %rax movq %rax, -0x120(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movss %xmm2, -0x14(%rbp) movl %esi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl %ecx, -0x20(%rbp) movb $0x0, -0x21(%rbp...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::cubeMesh(float)
Mesh cubeMesh(float _size) { float vertices[] = { -_size, _size, _size, -_size, -_size, _size, _size, -_size, _size, _size, _size, _size, -_size, _size, -_size, -_size, -_size, -_size, _size, -_size, -_size, _size, _size, -_size, }; ...
pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movq %rdi, -0x120(%rbp) movq %rdi, %rax movq %rax, -0x138(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss -0xc(%rbp), %xmm0 movaps 0x1a2a6f(%rip), %xmm1 # 0x4dd800 movaps %xmm1, -0x130(%rbp) pxor %xmm1, %xmm0 movss %xmm0, -0x70(%rbp) movs...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::cubeCornersMesh(glm::vec<3, float, (glm::qualifier)0> const&, glm::vec<3, float, (glm::qualifier)0> const&, float)
Mesh cubeCornersMesh(const glm::vec3 &_min_v, const glm::vec3 &_max_v, float _size) { float size = glm::min(glm::length(_min_v), glm::length(_max_v)) * _size * 0.5; // D ---- A // C ---- B | // | | | | // | I --|- F // H .... G glm::vec3 A = _max_v; glm::vec3 H = _min_v; ...
pushq %rbp movq %rsp, %rbp subq $0x1c80, %rsp # imm = 0x1C80 movq %rdi, -0x1668(%rbp) movq %rdi, %rax movq %rax, -0x1678(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movss %xmm0, -0x1c(%rbp) movq -0x10(%rbp), %rdi callq 0x28be00 movss %xmm0, -0x166c(%rbp) movq -0x18(%rbp), %rdi ca...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::axisMesh(float, float)
Mesh axisMesh(float _size, float _y) { Mesh mesh; mesh.setDrawMode(LINES); mesh.append( lineMesh(glm::vec3(_size,_y,0.0), glm::vec3(-_size,_y,0.0))); mesh.append( lineMesh(glm::vec3(0.0, _size, 0.0), glm::vec3(0.0, -_size, 0.0))); mesh.append( lineMesh(glm::vec3(0.0, _y, _size), glm::vec3(0.0, _y, ...
pushq %rbp movq %rsp, %rbp subq $0x280, %rsp # imm = 0x280 movq %rdi, -0x270(%rbp) movq %rdi, %rax movq %rax, -0x278(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movb $0x0, -0x11(%rbp) callq 0x39ad10 movq -0x270(%rbp), %rdi movl $0x1, %esi callq 0x24f570 jmp 0x33cb86 movss -0x...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::gridMesh(float, float, int, int, float)
Mesh gridMesh(float _width, float _height, int _columns, int _rows, float _y) { Mesh mesh; mesh.setDrawMode(LINES); // the origin of the plane is at the center // float halfW = _width * 0.5f; float halfH = _height * 0.5f; // . --- A // | | // B --- . glm::vec3 A = glm::vec...
pushq %rbp movq %rsp, %rbp subq $0x300, %rsp # imm = 0x300 movq %rdi, -0x270(%rbp) movq %rdi, %rax movq %rax, -0x278(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movss %xmm2, -0x1c(%rbp) movb $0x0, -0x1d(%rbp) callq 0x39ad10 movq -...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::floorMesh(float, int, float)
Mesh floorMesh(float _area, int _subD, float _y) { int N = pow(2,_subD); Mesh mesh; float w = _area/float(N); float h = _area/2.0; for (int z = 0; z <= N; z++){ for (int x = 0; x <= N; x++){ mesh.addVertex(glm::vec3(x * w - h, _y, z * w - h)); mesh.addColor(glm::vec...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x78(%rbp) movq %rdi, %rax movq %rax, -0x80(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movl %esi, -0x10(%rbp) movss %xmm1, -0x14(%rbp) movl -0x10(%rbp), %esi movl $0x2, %edi callq 0x28d310 movq -0x78(%rbp), %rdi cvttsd2si %xmm0, %eax movl %eax, -0x18(%rbp...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::sphereHalfMesh(int, float)
Mesh sphereHalfMesh(int _resolution, float _radius ) { Mesh mesh; float halfRes = _resolution*.5f; float doubleRes = _resolution*2.f; float polarInc = PI/(_resolution); // ringAngle float azimInc = TAU/(doubleRes); // segAngle // glm::vec3 vert; glm::vec2 tcoord; for (float i = ha...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x98(%rbp) movq %rdi, %rax movq %rax, -0x90(%rbp) movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movss %xmm0, -0x10(%rbp) movb $0x0, -0x11(%rbp) callq 0x39ad10 cvtsi2ssl -0xc(%rbp), %xmm0 movss 0x19eb62(%rip), %xmm1 # 0x4dc650 mulss %xmm1, %xmm0 movss %xmm0, -0x18(...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::cylinderMesh(float, float, int, int, int, bool, vera::DrawMode)
Mesh cylinderMesh( float _radius, float _height, int _radiusSegments, int _heightSegments, int _numCapSegments, bool _bCapped, DrawMode _drawMode ) { Mesh mesh; if (_drawMode != TRIANGLE_STRIP && _drawMode != TRIANGLES) _drawMode = TRIANGLE_STRIP; mesh.setDrawMode(_drawMode); _radiusS...
pushq %rbp movq %rsp, %rbp subq $0x1e0, %rsp # imm = 0x1E0 movq %rdi, -0x170(%rbp) movb %r8b, %al movq %rdi, %r8 movq %r8, -0x168(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) andb $0x1, %al movb %al, -0x1d(%r...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::cone(float, float, int, int, int, vera::DrawMode)
Mesh cone( float radius, float _height, int _radiusSegments, int _heightSegments, int _capSegments, DrawMode _drawMode ) { Mesh mesh; if (_drawMode != TRIANGLE_STRIP && _drawMode != TRIANGLES) _drawMode = TRIANGLE_STRIP; mesh.setDrawMode(_drawMode); _radiusSegments = _radiusSegments+1; _ca...
pushq %rbp movq %rsp, %rbp subq $0x240, %rsp # imm = 0x240 movq %rdi, -0x190(%rbp) movq %rdi, %rax movq %rax, -0x188(%rbp) movq %rdi, -0x8(%rbp) movss %xmm0, -0xc(%rbp) movss %xmm1, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movl %r8d, -0x20(%rbp) movb $0x0, -0x21(%rbp) ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
vera::toTerrain(vera::Image const&, float, float, float, int, int)
Mesh toTerrain( const Image& _image, const float _zScale, const float _maxError, const float _baseHeight, const int _maxTriangles, const int _maxPoints) { if (_image.getChannels() != 1) return Mesh(); TriangulatorData data; // add points at all fou...
pushq %rbp movq %rsp, %rbp subq $0x7e0, %rsp # imm = 0x7E0 movq %rdi, -0x5c8(%rbp) movq %rdi, %rax movq %rax, -0x5c0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movss %xmm0, -0x14(%rbp) movss %xmm1, -0x18(%rbp) movss %xmm2, -0x1c(%rbp) movl %edx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %r...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/ops/meshes.cpp
tinyexr::EncodePixelData(std::vector<unsigned char, std::allocator<unsigned char>>&, unsigned char const* const*, int, int, int, int, int, int, int, unsigned long, std::vector<tinyexr::TChannelInfo, std::allocator<tinyexr::TChannelInfo>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&, std::__c...
static bool EncodePixelData(/* out */ std::vector<unsigned char>& out_data, const unsigned char* const* images, int compression_type, int /*line_order*/, int width, // for tiled : tile.width ...
pushq %rbp movq %rsp, %rbp subq $0x3b0, %rsp # imm = 0x3B0 movq 0x48(%rbp), %rax movq 0x40(%rbp), %rax movq 0x38(%rbp), %rax movq 0x30(%rbp), %rax movq 0x28(%rbp), %rax movl 0x20(%rbp), %eax movl 0x18(%rbp), %eax movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinyexr/tinyexr.h
tinyexr::swap2(unsigned short*)
static void swap2(unsigned short *val) { #ifdef TINYEXR_LITTLE_ENDIAN (void)val; #else unsigned short tmp = *val; unsigned char *dst = reinterpret_cast<unsigned char *>(val); unsigned char *src = reinterpret_cast<unsigned char *>(&tmp); dst[0] = src[1]; dst[1] = src[0]; #endif }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) popq %rbp retq nopw (%rax,%rax)
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinyexr/tinyexr.h
vera::Triangle::getClosestPoint(glm::vec<3, float, (glm::qualifier)0> const&) const
glm::vec3 Triangle::getClosestPoint(const glm::vec3& _p) const { // https://github.com/nmoehrle/libacc/blob/master/primitives.h#L71 glm::vec3 ab = m_vertices[1] - m_vertices[0]; glm::vec3 ac = m_vertices[2] - m_vertices[0]; glm::vec3 normal = glm::normalize( glm::cross(ac,ab) ); glm::vec3 p = _p - ...
pushq %rbp movq %rsp, %rbp subq $0x3b0, %rsp # imm = 0x3B0 movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq -0x18(%rbp), %rdi movq %rdi, -0x358(%rbp) movq %rdi, %rsi addq $0x10, %rsi movq %rsi, -0x340(%rbp) addq $0x1c, %rdi callq 0x28dc50 movq -0x358(%rbp), %rdi movq -0x340(%rbp), %rsi movss %xmm1, -0x38(%...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/types/triangle.cpp
vera::Triangle::getClosestRGBSignedDistance(glm::vec<3, float, (glm::qualifier)0> const&) const
glm::vec4 Triangle::getClosestRGBSignedDistance(const glm::vec3& _p) const { glm::vec3 nearest = glm::vec3(0.0); glm::vec3 pseudo_normal = getNormal(); nearest = getClosestPoint(_p); glm::vec3 barycentric = getBarycentricOf(nearest); glm::vec4 c = getColor( barycentric ); glm::vec3 u = _p - n...
pushq %rbp movq %rsp, %rbp subq $0x130, %rsp # imm = 0x130 movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x118(%rbp) leaq -0x30(%rbp), %rdi movq %rdi, -0x120(%rbp) xorps %xmm0, %xmm0 callq 0x280140 movq -0x118(%rbp), %rdi callq 0x3388c0 movq -0x118(%rbp), %rdi movl 0x8(%rax...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/types/triangle.cpp
vera::QuiltProperties::QuiltProperties(int, int, int, int)
QuiltProperties::QuiltProperties(int _width, int _height, int _cols, int _rows) { width = _width; height = _height; columns = _cols; rows = _rows; totalViews = _cols * _rows; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movq -0x8(%rbp), %rax movl $0x800, (%rax) # imm = 0x800 movl $0x800, 0x4(%rax) # imm = 0x800 movl $0x4, 0x8(%rax) movl $0x8, 0xc(%rax) movl $0x20, 0x10(%rax) movl -0...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/xr/holoPlay.cpp
vera::renderQuilt(std::function<void (vera::QuiltProperties const&, glm::vec<4, float, (glm::qualifier)0>&, int&)>, int, bool)
void renderQuilt(std::function<void(const QuiltProperties&, glm::vec4&, int&)> _renderFnc, int _viewIndex, bool _justQuilt) { Camera* cam = getCamera(); if (!cam) return; if (!_justQuilt) { if (!quilt_fbo.isAllocated()) quilt_fbo.allocate(quilt.width, quilt.height, COLOR_TEXTUR...
pushq %rbp movq %rsp, %rbp subq $0x190, %rsp # imm = 0x190 movq %rdi, -0x138(%rbp) movb %dl, %al movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) andb $0x1, %al movb %al, -0xd(%rbp) callq 0x313cd0 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x3b8445 jmp 0x3b890a testb $0x1, -0xd(%rbp) jne 0x3b84f5 leaq 0x30...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/xr/holoPlay.cpp
nlohmann::operator<<(std::ostream&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&)
friend std::ostream& operator<<(std::ostream& o, const basic_json& j) { // read width member and use it as indentation parameter if nonzero const bool pretty_print = (o.width() > 0); const auto indentation = (pretty_print ? o.width() : 0); // reset width to 0 for subsequent calls to...
pushq %rbp movq %rsp, %rbp subq $0x300, %rsp # imm = 0x300 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq (%rdi), %rax addq -0x18(%rax), %rdi callq 0x3d1520 cmpq $0x0, %rax setg %al andb $0x1, %al movb %al, -0x11(%rbp) testb $0x1, -0x11(%rbp) je 0x3b910e movq -0x8(%rbp), %rdi movq (%...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::parse(bool, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std...
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); result.assert_invariant(); // in strict mode, input must be completel...
pushq %rbp movq %rsp, %rbp subq $0x360, %rsp # imm = 0x360 movb %sil, %al movq %rdi, -0x8(%rbp) andb $0x1, %al movb %al, -0x9(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x2f0(%rbp) callq 0x3bd5c0 testb $0x1, %al jne 0x3bbfa4 jmp 0x3bc321 movq -0x2f0(%rbp), %rsi movq -0x18(%rbp), %rax movq...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::lexer(std::shared_ptr<nlohmann::detail::input_adapter_protocol>&&)
explicit lexer(detail::input_adapter_t&& adapter) : ia(std::move(adapter)), decimal_point_char(get_decimal_point()) {}
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x18(%rbp) movq -0x10(%rbp), %rsi callq 0x3bd5e0 callq 0x3bd610 movq -0x18(%rbp), %rdi movl %eax, 0x10(%rdi) movb $0x0, 0x14(%rdi) addq $0x18, %rdi callq 0x3bd620 movq -0x18(%rbp), %rdi addq $0x30,...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::scan()
token_type scan() { // initially, skip the BOM if (position.chars_read_total == 0 and not skip_bom()) { error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given"; return token_type::parse_error; } // read next character and ignore whitespace ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x0, 0x18(%rax) jne 0x3bd753 movq -0x18(%rbp), %rdi callq 0x3bd8c0 testb $0x1, %al jne 0x3bd753 movq -0x18(%rbp), %rax leaq 0x145a72(%rip), %rcx # 0x5031b5 movq %rcx, 0x68(%rax) movl $0xe, -0x4(%rbp...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::get()
std::char_traits<char>::int_type get() { ++position.chars_read_total; ++position.chars_read_current_line; if (next_unget) { // just reset the next_unget variable and work with current next_unget = false; } else { current = ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq 0x18(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x18(%rax) movq 0x20(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x20(%rax) testb $0x1, 0x14(%rax) je 0x3bd96c movq -0x18(%rbp), %rax movb $0x0, 0x14(%rax) jmp 0x3bd...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::scan_string()
token_type scan_string() { // reset token_buffer (ignore opening quote) reset(); // we entered the function by reading an open quote assert(current == '\"'); while (true) { // get next character switch (get()) { //...
pushq %rbp movq %rsp, %rbp subq $0x130, %rsp # imm = 0x130 movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x118(%rbp) callq 0x3bed90 movq -0x118(%rbp), %rax cmpl $0x22, 0x10(%rax) jne 0x3bdafe jmp 0x3bdb1d leaq 0x14582c(%rip), %rdi # 0x503331 leaq 0x144f2f(%rip), %rsi # 0x502a3b movl $0xaf3,...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
std::pair<bool, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>*> nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx...
std::pair<bool, BasicJsonType*> handle_value(Value&& v, const bool skip_callback = false) { assert(not keep_stack.empty()); // do not handle this value if we know it would be added to a discarded // container if (not keep_stack.back()) { return {false, nullptr}; ...
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movb %dl, %al movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) andb $0x1, %al movb %al, -0x21(%rbp) movq -0x18(%rbp), %rdi movq %rdi, -0x108(%rbp) addq $0x20, %rdi callq 0x3c5e80 xorb $-0x1, %al testb $0x1, %al jne 0x3cd1e6 jmp 0x3cd1e8 jmp 0x3cd207 lea...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::token_type_name(nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cx...
static const char* token_type_name(const token_type t) noexcept { switch (t) { case token_type::uninitialized: return "<uninitialized>"; case token_type::literal_true: return "true literal"; case token_type::literal_false: ...
pushq %rbp movq %rsp, %rbp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax movq %rax, -0x18(%rbp) subq $0x10, %rax ja 0x3cecd1 movq -0x18(%rbp), %rax leaq 0x132fad(%rip), %rcx # 0x501ba0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x13682f(%rip), %rax # 0x505432 movq %rax, -0x8(%rbp) jmp 0x3cecdc leaq ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::start_array(unsigned long)
bool start_array(std::size_t len) { ref_stack.push_back(handle_value(BasicJsonType::value_t::array)); if (JSON_UNLIKELY(len != std::size_t(-1) and len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, "excessive a...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x80(%rbp) movq %rdi, %rax addq $0x8, %rax movq %rax, -0x78(%rbp) movb $0x2, -0x19(%rbp) leaq -0x19(%rbp), %rsi callq 0x3cf240 movq -0x78(%rbp), %rdi movq %rax, -0x18(%rbp) leaq -0x18(%rbp), %rsi c...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>* nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std...
BasicJsonType* handle_value(Value&& v) { if (ref_stack.empty()) { root = BasicJsonType(std::forward<Value>(v)); return &root; } assert(ref_stack.back()->is_array() or ref_stack.back()->is_object()); if (ref_stack.back()->is_array()) { ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x40(%rbp) addq $0x8, %rdi callq 0x3c6630 testb $0x1, %al jne 0x3cf947 jmp 0x3cf97d movq -0x18(%rbp), %rsi leaq -0x28(%rbp), %rdi callq 0x3cca70 movq -0x40(%rbp), %rax movq (%rax), %rdi leaq -0x2...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::dtoa_impl::diyfp::normalize(nlohmann::detail::dtoa_impl::diyfp)
static diyfp normalize(diyfp x) noexcept { assert(x.f != 0); while ((x.f >> 63) == 0) { x.f <<= 1; x.e--; } return x; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x20(%rbp) movl %esi, -0x18(%rbp) cmpq $0x0, -0x20(%rbp) je 0x3d5338 jmp 0x3d5357 leaq 0x130d2e(%rip), %rdi # 0x50606d leaq 0x12d6f5(%rip), %rsi # 0x502a3b movl $0x26d2, %edx # imm = 0x26D2 leaq 0x130d24(%rip), %rcx # 0x506076 callq 0x21b410 jmp...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
nlohmann::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long)
inline void grisu2_round(char* buf, int len, uint64_t dist, uint64_t delta, uint64_t rest, uint64_t ten_k) { assert(len >= 1); assert(dist <= delta); assert(rest <= delta); assert(ten_k > 0); // <--------------------------- delta ----> // ...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) cmpl $0x1, -0xc(%rbp) jl 0x3d5d67 jmp 0x3d5d86 leaq 0x13062a(%rip), %rdi # 0x506398 leaq 0x12ccc6(%rip), %rsi # 0x502a3b movl $0x2864, %...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
float nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::get<float, float, 0>() const
ValueType get() const noexcept(noexcept( JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>()))) { // we cannot static_assert on ValueTypeCV being non-const, because // there is support for get<const basic_json_t>...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi leaq -0xc(%rbp), %rsi callq 0x3d60b0 movss -0xc(%rbp), %xmm0 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
mz_crc32
mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len) { static const mz_uint32 s_crc_table[256] = { 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, ...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax xorl $-0x1, %eax movl %eax, -0x1c(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) cmpq $0x4, -0x18(%rbp) jb 0x3d7091 movl -0x1c(%rbp), %eax shrl $0x8, %eax movl -0x1c(%rbp), %ecx movq -0x28(%rbp), %r...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
tdefl_flush_block(tdefl_compressor*, int)
static int tdefl_flush_block(tdefl_compressor *d, int flush) { mz_uint saved_bit_buf, saved_bits_in; mz_uint8 *pSaved_output_buf; mz_bool comp_block_succeeded = MZ_FALSE; int n, use_raw_block = ((d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS) != 0) && (d->m_lookahead_pos - d->m_lz_code_buf_dict_pos) <= d->m_d...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl $0x0, -0x2c(%rbp) movq -0x10(%rbp), %rax movl 0x10(%rax), %ecx andl $0x80000, %ecx # imm = 0x80000 xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0xb9(%rbp) je 0x3dd751 movq -0x10(%rbp), %rax movl 0x24(%rax), %eax movq -...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
tdefl_compress_mem_to_output
mz_bool tdefl_compress_mem_to_output(const void *pBuf, size_t buf_len, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags) { tdefl_compressor *pComp; mz_bool succeeded; if (((buf_len) && (!pBuf)) || (!pPut_buf_func)) return MZ_FALSE; pComp = (tdefl_compressor *)MZ_MALLOC(sizeof...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movl %r8d, -0x2c(%rbp) cmpq $0x0, -0x18(%rbp) je 0x3de80a cmpq $0x0, -0x10(%rbp) je 0x3de811 cmpq $0x0, -0x20(%rbp) jne 0x3de81d movl $0x0, -0x4(%rbp) jmp 0x3de8a1 movl $0x4df78, %edi ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
tdefl_compress_mem_to_heap
void *tdefl_compress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags) { tdefl_output_buffer out_buf; MZ_CLEAR_OBJ(out_buf); if (!pOut_len) return MZ_FALSE; else *pOut_len = 0; out_buf.m_expandable = MZ_TRUE; if (!tdefl_compress_mem_to_output(pSrc...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) leaq -0x48(%rbp), %rdi xorl %esi, %esi movl $0x20, %edx callq 0x21b7c0 cmpq $0x0, -0x20(%rbp) jne 0x3de8e8 movq $0x0, -0x8(%rbp) jmp 0x3de938 movq -0x20(%rbp), %rax movq $0x0, (%rax) m...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
tdefl_compress_mem_to_mem
size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags) { tdefl_output_buffer out_buf; MZ_CLEAR_OBJ(out_buf); if (!pOut_buf) return 0; out_buf.m_pBuf = (mz_uint8 *)pOut_buf; out_buf.m_capacity = out_buf_len; if (!tdefl_com...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movl %r8d, -0x2c(%rbp) leaq -0x50(%rbp), %rdi xorl %esi, %esi movl $0x20, %edx callq 0x21b7c0 cmpq $0x0, -0x10(%rbp) jne 0x3dea9d movq $0x0, -0x8(%rbp) jmp 0x3deae0 movq -0x10(%rbp), %...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
tdefl_write_image_to_png_file_in_memory_ex
void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w, int h, int num_chans, size_t *pLen_out, mz_uint level, mz_bool flip) { /* Using a local copy of this array here in case MINIZ_NO_ZLIB_APIS was defined. */ static const mz_uint s_tdefl_png_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movl %r9d, -0x2c(%rbp) movl $0x4df78, %edi # imm = 0x4DF78 callq 0x21c7b0 movq %rax, -0x38(%rbp) movl -0x14(%rbp), %eax imull -0x1c...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
tinfl_decompress_mem_to_heap
void *tinfl_decompress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags) { tinfl_decompressor decomp; void *pBuf = NULL, *pNew_buf; size_t src_buf_ofs = 0, out_buf_capacity = 0; *pOut_len = 0; tinfl_init(&decomp); for (;;) { size_t src_buf_size = src_...
pushq %rbp movq %rsp, %rbp subq $0x2b80, %rsp # imm = 0x2B80 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq $0x0, -0x2b28(%rbp) movq $0x0, -0x2b38(%rbp) movq $0x0, -0x2b40(%rbp) movq -0x20(%rbp), %rax movq $0x0, (%rax) movl $0x0, -0x2b20(%rbp) jmp 0x3defc2 mov...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
mz_zip_reader_init
mz_bool mz_zip_reader_init(mz_zip_archive *pZip, mz_uint64 size, mz_uint flags) { if ((!pZip) || (!pZip->m_pRead)) return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); if (!mz_zip_reader_init_internal(pZip, flags)) return MZ_FALSE; pZip->m_zip_type = MZ_ZIP_TYPE_USER; pZip->m_archi...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movl %edx, -0x24(%rbp) cmpq $0x0, -0x18(%rbp) je 0x3df665 movq -0x18(%rbp), %rax cmpq $0x0, 0x48(%rax) jne 0x3df68e movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movl $0x18, -0xc(%rbp) cmpq $0x0, -0x8(%rbp) je 0x3df685 movl -0xc(%r...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
mz_zip_reader_read_central_dir(mz_zip_archive*, unsigned int)
static mz_bool mz_zip_reader_read_central_dir(mz_zip_archive *pZip, mz_uint flags) { mz_uint cdir_size = 0, cdir_entries_on_this_disk = 0, num_this_disk = 0, cdir_disk_index = 0; mz_uint64 cdir_ofs = 0; mz_int64 cur_file_ofs = 0; const mz_uint8 *p; mz_uint32 buf_u32[4096 / sizeof(mz_uint32)]; m...
pushq %rbp movq %rsp, %rbp subq $0x1360, %rsp # imm = 0x1360 movq %rdi, -0x220(%rbp) movl %esi, -0x224(%rbp) movl $0x0, -0x228(%rbp) movl $0x0, -0x22c(%rbp) movl $0x0, -0x230(%rbp) movl $0x0, -0x234(%rbp) movq $0x0, -0x240(%rbp) movq $0x0, -0x248(%rbp) leaq -0x1250(%rbp), %rax movq %rax, -0x1258(%rbp) movl -0...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
mz_zip_reader_init_file_v2
mz_bool mz_zip_reader_init_file_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint flags, mz_uint64 file_start_ofs, mz_uint64 archive_size) { mz_uint64 file_size; MZ_FILE *pFile; if ((!pZip) || (!pFilename) || ((archive_size) && (archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE))) return m...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x48(%rbp) movq %rsi, -0x50(%rbp) movl %edx, -0x54(%rbp) movq %rcx, -0x60(%rbp) movq %r8, -0x68(%rbp) cmpq $0x0, -0x48(%rbp) je 0x3e0cea cmpq $0x0, -0x50(%rbp) je 0x3e0cea cmpq $0x0, -0x68(%rbp) je 0x3e0d16 cmpq $0x16, -0x68(%rbp) jae 0x3e0d16 movq -0x48(%rbp), %r...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
mz_zip_reader_sort_central_dir_offsets_by_filename(mz_zip_archive*)
static void mz_zip_reader_sort_central_dir_offsets_by_filename(mz_zip_archive *pZip) { mz_zip_internal_state *pState = pZip->m_pState; const mz_zip_array *pCentral_dir_offsets = &pState->m_central_dir_offsets; const mz_zip_array *pCentral_dir = &pState->m_central_dir; mz_uint32 *pIndices; mz_uint32 ...
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x108(%rbp) movq -0x108(%rbp), %rax movq 0x68(%rax), %rax movq %rax, -0x110(%rbp) movq -0x110(%rbp), %rax addq $0x20, %rax movq %rax, -0x118(%rbp) movq -0x110(%rbp), %rax movq %rax, -0x120(%rbp) movq -0x108(%rbp), %rax movl 0x10(%rax), %e...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/miniz/miniz.cpp
glob::(anonymous namespace)::split_path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::pair<std::string, std::string> split_path(const std::string &path) { std::string::size_type last_sep = path.find_last_of("/"); if (last_sep != std::string::npos) { return std::make_pair( std::string(path.begin(), path.begin() + last_sep), std::string(path.begin() + last_sep ...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0xe8(%rbp) movq %rdi, %rax movq %rax, -0xe0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rdi leaq 0xed951(%rip), %rsi # 0x4e2420 movq $-0x1, %rdx callq 0x21c7d0 movq %rax, -0x18(%rbp) cmpq $-0x1, -0x18(%rbp) j...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/glob/glob.cpp
tinygltf::TinyGLTF::LoadBinaryFromMemory(tinygltf::Model*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, unsigned char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::a...
bool TinyGLTF::LoadBinaryFromMemory(Model *model, std::string *err, std::string *warn, const unsigned char *bytes, unsigned int size, const std::string &base_dir, ...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movl 0x18(%rbp), %eax movq 0x10(%rbp), %rax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movl %r9d, -0x34(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x90(%rbp) cmpl $0x14, -0x34(%rbp) jae 0x421ccb cmpq $0x0, -...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::TinyGLTF::WriteGltfSceneToStream(tinygltf::Model*, std::ostream&, bool, bool)
bool TinyGLTF::WriteGltfSceneToStream(Model *model, std::ostream &stream, bool prettyPrint = true, bool writeBinary = false) { JsonDocument output; /// Serialize all properties except buffers and images. SerializeGltfModel(model, output)...
pushq %rbp movq %rsp, %rbp subq $0x160, %rsp # imm = 0x160 movb %r8b, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %cl movb %cl, -0x19(%rbp) andb $0x1, %al movb %al, -0x1a(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x120(%rbp) xorl %eax, %eax movl %eax, %esi leaq -0x30(%rbp...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::(anonymous namespace)::JsonReserveArray(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&, unsigned long)
void JsonReserveArray(json &o, size_t s) { #ifdef TINYGLTF_USE_RAPIDJSON o.SetArray(); o.Reserve(static_cast<rapidjson::SizeType>(s), GetAllocator()); #endif (void)(o); (void)(s); }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) popq %rbp retq nop
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfBuffer(tinygltf::Buffer&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfBuffer(Buffer &buffer, json &o) { SerializeNumberProperty("byteLength", buffer.data.size(), o); SerializeGltfBufferData(buffer.data, o); if (buffer.name.size()) SerializeStringProperty("name", buffer.name, o); if (buffer.extras.Type() != NULL_TYPE) { SerializeValue("extras", buffe...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xa0(%rbp) callq 0x21c970 movq -0xa0(%rbp), %rdx leaq 0xe972f(%rip), %rsi # 0x50d350 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x423c2c movq -0x8(%rbp), %rdi addq $0x20, %rdi callq 0x366900 mo...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::UpdateImageObject(tinygltf::Image&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, int, bool, bool (**)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*...
static void UpdateImageObject(Image &image, std::string &baseDir, int index, bool embedImages, WriteImageDataFunction *WriteImageData = nullptr, void *user_data = nullptr) { std::string filename; std::string ext; // If imag...
pushq %rbp movq %rsp, %rbp subq $0x1e0, %rsp # imm = 0x1E0 movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) andb $0x1, %al movb %al, -0x15(%rbp) movq %r8, -0x20(%rbp) movq %r9, -0x28(%rbp) leaq -0x48(%rbp), %rdi callq 0x21b8a0 leaq -0x68(%rbp), %rdi callq 0x21b8a0 movq -0x8(%...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfImage(tinygltf::Image&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfImage(Image &image, json &o) { // if uri empty, the mimeType and bufferview should be set if (image.uri.empty()) { SerializeStringProperty("mimeType", image.mimeType, o); SerializeNumberProperty<int>("bufferView", image.bufferView, o); } else { SerializeStringProperty("uri", i...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi addq $0x78, %rdi callq 0x21b6b0 testb $0x1, %al jne 0x424219 jmp 0x424323 leaq -0x31(%rbp), %rdi movq %rdi, -0xf0(%rbp) callq 0x21c970 movq -0xf0(%rbp), %rdx leaq 0xe9552(%rip), %rsi ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::WriteBinaryGltfStream(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static void WriteBinaryGltfStream(std::ostream &stream, const std::string &content) { const std::string header = "glTF"; const int version = 2; const int padding_size = content.size() % 4; // 12 bytes for header, JSON content length, 8 bytes for JSON chunk info, // padding ...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0x88(%rbp) callq 0x21c970 movq -0x88(%rbp), %rdx leaq 0xe9211(%rip), %rsi # 0x50d792 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42458c leaq -0x31(%rbp), %rdi callq 0x21d020 movl $0x2, -0x48(%...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::(anonymous namespace)::JsonToString(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, int)
std::string JsonToString(const json &o, int spacing = -1) { #ifdef TINYGLTF_USE_RAPIDJSON using namespace rapidjson; StringBuffer buffer; if (spacing == -1) { Writer<StringBuffer> writer(buffer); o.Accept(writer); } else { PrettyWriter<StringBuffer> writer(buffer); writer.SetIndent(' ', spacing)...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, %rax movq %rax, -0x20(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx movl $0x20, %ecx xorl %r9d, %r9d movl %r9d, %r8d callq 0x451280 movq -0x20(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopl...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::TinyGLTF::WriteGltfSceneToFile(tinygltf::Model*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, bool, bool, bool)
bool TinyGLTF::WriteGltfSceneToFile(Model *model, const std::string &filename, bool embedImages = false, bool embedBuffers = false, bool prettyPrint = true, bool writeBinary = ...
pushq %rbp movq %rsp, %rbp subq $0x300, %rsp # imm = 0x300 movl %r9d, -0x2a8(%rbp) movl %r8d, -0x2a4(%rbp) movl %ecx, %eax movl -0x2a8(%rbp), %ecx movq %rdx, %r8 movl -0x2a4(%rbp), %edx movq %r8, -0x2a0(%rbp) movq %rsi, %r8 movq %rdi, %r9 movq -0x2a0(%rbp), %rdi movb %al, %sil movb 0x10(%rbp), %al movq %r9, ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfBuffer(tinygltf::Buffer&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::alloca...
static bool SerializeGltfBuffer(Buffer &buffer, json &o, const std::string &binFilename, const std::string &binBaseFilename) { if (!SerializeGltfBufferData(buffer.data, binFilename)) return false; SerializeNumberProperty("byteLength", buffer.data.size(...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rdi addq $0x20, %rdi movq -0x20(%rbp), %rsi callq 0x4315c0 testb $0x1, %al jne 0x4252a9 movb $0x0, -0x1(%rbp) jmp 0x42551c leaq -0x49(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
vera::loadModel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, tinygltf::Model&)
bool loadModel(const std::string& _filename, tinygltf::Model& _model) { tinygltf::TinyGLTF loader; std::string err; std::string warn; std::string ext = getExt(_filename); bool res = false; // assume binary glTF. if (ext == "glb" || ext == "GLB") res = loader.LoadBinaryFromFile(&_mo...
pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x70(%rbp), %rdi callq 0x444a80 leaq -0x90(%rbp), %rdi callq 0x21b8a0 leaq -0xb0(%rbp), %rdi callq 0x21b8a0 movq -0x8(%rbp), %rsi leaq -0xd0(%rbp), %rdi callq 0x3257b0 jmp 0x4256f6 movb $0x0, -0xdd(%...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/io/gltf.cpp
vera::extractVertexData(unsigned int, unsigned char const*, int, int, bool, unsigned int, float*, unsigned char)
void extractVertexData(uint32_t v_pos, const uint8_t *base, int accesor_componentType, int accesor_type, bool accesor_normalized, uint32_t byteStride, float *output, uint8_t max_num_comp) { float v[4] = {0.0f, 0.0f, 0.0f, 0.0f}; uint32_t ncomp = 1; switch (accesor_type) { case TINYGLTF_TYPE_SCALAR: ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movb %r8b, %al movb 0x18(%rbp), %r8b movq 0x10(%rbp), %r8 movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movl %r9d, -0x20(%rbp) xorps %xmm0, %xmm0 movaps %xmm0, -0x30(%rbp) movl $0x1, -0x34(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/io/gltf.cpp
vera::extractMaterial(tinygltf::Model const&, tinygltf::Material const&, vera::Scene*, bool)
Material* extractMaterial(const tinygltf::Model& _model, const tinygltf::Material& _material, Scene* _scene, bool _verbose) { std::string mat_name = toLower( toUnderscore( purifyString( _material.name ) ) ); if (_scene->materials.find(mat_name) != _scene->materials.end()) return _scene->materials[mat_n...
pushq %rbp movq %rsp, %rbp subq $0xbd0, %rsp # imm = 0xBD0 movb %cl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) andb $0x1, %al movb %al, -0x21(%rbp) movq -0x18(%rbp), %rsi leaq -0x88(%rbp), %rdi movq %rdi, -0x880(%rbp) callq 0x37a7b0 movq -0x880(%rbp), %rsi leaq -0x68(%rbp), %rd...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/io/gltf.cpp
vera::extractMesh(tinygltf::Model const&, tinygltf::Mesh const&, glm::mat<4, 4, float, (glm::qualifier)0>, vera::Scene*, bool)
void extractMesh(const tinygltf::Model& _model, const tinygltf::Mesh& _mesh, glm::mat4 _matrix, Scene* _scene, bool _verbose) { if (_verbose) std::cout << " Parsing Mesh " << _mesh.name << std::endl; glm::mat3 normalMatrix = glm::transpose(glm::inverse(glm::mat3(_matrix))); for (size_t i = 0; i <...
pushq %rbp movq %rsp, %rbp subq $0x540, %rsp # imm = 0x540 movb %cl, %al leaq 0x10(%rbp), %rcx movq %rcx, -0x268(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) testb $0x1, -0x19(%rbp) je 0x4282dd movq 0x246c9a(%rip), %rdi # 0x66ef50 leaq 0xe4...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/io/gltf.cpp
tinygltf::ParseStringProperty(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool...
static bool ParseStringProperty( std::string *ret, std::string *err, const json &o, const std::string &property, bool required, const std::string &parent_node = std::string()) { json_const_iterator it; if (!FindMember(o, property.c_str(), it)) { if (required) { if (err) { (*err) += "'"...
pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) andb $0x1, %al movb %al, -0x29(%rbp) movq %r9, -0x38(%rbp) leaq -0x58(%rbp), %rdi callq 0x443fa0 movq -0x20(%rbp), %rax movq %rax, -0x158(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseSpotLight(tinygltf::SpotLight*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_ser...
static bool ParseSpotLight(SpotLight *light, std::string *err, const json &o) { ParseNumberProperty(&light->innerConeAngle, err, o, "innerConeAngle", false); ParseNumberProperty(&light->outerConeAngle, err, o, "outerConeAngle", false); ParseExtensionsProperty(&light->extensions, err, o); ParseExtrasProperty(&l...
pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xe8(%rbp) movq -0x10(%rbp), %rax movq %rax, -0xe0(%rbp) movq -0x18(%rbp), %rax movq %rax, -0xd8(%rbp) leaq -0x39(%rbp), %rdi movq %rdi, -0xd0(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseNumberArrayProperty(std::vector<double, std::allocator<double>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double,...
static bool ParseNumberArrayProperty(std::vector<double> *ret, std::string *err, const json &o, const std::string &property, bool required, const std::string &parent_node = "") { json_const_iterator it; if...
pushq %rbp movq %rsp, %rbp subq $0x210, %rsp # imm = 0x210 movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) andb $0x1, %al movb %al, -0x29(%rbp) movq %r9, -0x38(%rbp) leaq -0x58(%rbp), %rdi callq 0x443fa0 movq -0x20(%rbp), %rax movq %rax, -0x1e0(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseNumberProperty(double*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>...
static bool ParseNumberProperty(double *ret, std::string *err, const json &o, const std::string &property, const bool required, const std::string &parent_node = "") { json_const_iterator it; if (!FindMember(o, property....
pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) andb $0x1, %al movb %al, -0x29(%rbp) movq %r9, -0x38(%rbp) leaq -0x58(%rbp), %rdi callq 0x443fa0 movq -0x20(%rbp), %rax movq %rax, -0x120(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::(anonymous namespace)::GetNumber(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, double&)
bool GetNumber(const json &o, double &val) { #ifdef TINYGLTF_USE_RAPIDJSON if (o.IsNumber()) { val = o.GetDouble(); return true; } return false; #else if (o.is_number()) { val = o.get<double>(); return true; } return false; #endif }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x44c4f0 testb $0x1, %al jne 0x42afcf jmp 0x42afe6 movq -0x10(%rbp), %rdi callq 0x44a460 movq -0x18(%rbp), %rax movsd %xmm0, (%rax) movb $0x1, -0x1(%rbp) jmp 0x42afea movb $0x0, -0x1(%rbp) movb -0x1(%r...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::(anonymous namespace)::GetDouble(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, double&)
bool GetDouble(const json &o, double &val) { #ifdef TINYGLTF_USE_RAPIDJSON if (o.IsDouble()) { val = o.GetDouble(); return true; } return false; #else if (o.type() == json::value_t::number_float) { val = static_cast<double>(o.get<double>()); return true; } return false; #endif }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x3d6890 cmpb $0x7, %al jne 0x42b034 movq -0x10(%rbp), %rdi callq 0x44a460 movq -0x18(%rbp), %rax movsd %xmm0, (%rax) movb $0x1, -0x1(%rbp) jmp 0x42b038 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfAccessor(tinygltf::Accessor&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfAccessor(Accessor &accessor, json &o) { SerializeNumberProperty<int>("bufferView", accessor.bufferView, o); if (accessor.byteOffset != 0.0) SerializeNumberProperty<int>("byteOffset", int(accessor.byteOffset), o); SerializeNumberProperty<int>("componentType", accessor.componentType, ...
pushq %rbp movq %rsp, %rbp subq $0x2c0, %rsp # imm = 0x2C0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0x270(%rbp) callq 0x21c970 movq -0x270(%rbp), %rdx leaq 0xe1701(%rip), %rsi # 0x50c782 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42b08c movq -0x8(%rbp), %rax movl (...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfBufferView(tinygltf::BufferView&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfBufferView(BufferView &bufferView, json &o) { SerializeNumberProperty("buffer", bufferView.buffer, o); SerializeNumberProperty<size_t>("byteLength", bufferView.byteLength, o); // byteStride is optional, minimum allowed is 4 if (bufferView.byteStride >= 4) { SerializeNumberProperty<...
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0x140(%rbp) callq 0x21c970 movq -0x140(%rbp), %rdx leaq 0x15c307(%rip), %rsi # 0x588248 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42bf4c movq -0x8(%rbp), %rax movl 0...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfMesh(tinygltf::Mesh&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfMesh(Mesh &mesh, json &o) { json primitives; JsonReserveArray(primitives, mesh.primitives.size()); for (unsigned int i = 0; i < mesh.primitives.size(); ++i) { json primitive; const Primitive &gltfPrimitive = mesh.primitives[i]; // don't make a copy { json attributes; ...
pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) xorl %eax, %eax movl %eax, %esi leaq -0x20(%rbp), %rdi movq %rdi, -0x1f0(%rbp) callq 0x3b8f40 movq -0x8(%rbp), %rdi addq $0x20, %rdi callq 0x444f30 movq -0x1f0(%rbp), %rdi movq %rax, %rsi callq 0x423be0 jm...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfNode(tinygltf::Node&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfNode(Node &node, json &o) { if (node.translation.size() > 0) { SerializeNumberArrayProperty<double>("translation", node.translation, o); } if (node.rotation.size() > 0) { SerializeNumberArrayProperty<double>("rotation", node.rotation, o); } if (node.scale.size() > 0) { Ser...
pushq %rbp movq %rsp, %rbp subq $0x230, %rsp # imm = 0x230 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi addq $0x78, %rdi callq 0x445200 cmpq $0x0, %rax jbe 0x42d4ff leaq -0x31(%rbp), %rdi movq %rdi, -0x1e0(%rbp) callq 0x21c970 movq -0x1e0(%rbp), %rdx leaq 0xdffe6(%rip), %rsi # 0x50d...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfScene(tinygltf::Scene&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfScene(Scene &scene, json &o) { SerializeNumberArrayProperty<int>("nodes", scene.nodes, o); if (scene.name.size()) { SerializeStringProperty("name", scene.name, o); } if (scene.extras.Type() != NULL_TYPE) { SerializeValue("extras", scene.extras, o); } SerializeExtensionMap(s...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xa0(%rbp) callq 0x21c970 movq -0xa0(%rbp), %rdx leaq 0xde9e7(%rip), %rsi # 0x50c668 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42dc8c movq -0x8(%rbp), %rsi addq $0x20, %rsi movq -0x10(%rbp),...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfSkin(tinygltf::Skin&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfSkin(Skin &skin, json &o) { if (skin.inverseBindMatrices != -1) SerializeNumberProperty("inverseBindMatrices", skin.inverseBindMatrices, o); SerializeNumberArrayProperty<int>("joints", skin.joints, o); SerializeNumberProperty("skeleton", skin.skeleton, o); if (skin.name.size()) { ...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax cmpl $-0x1, 0x20(%rax) je 0x42def5 leaq -0x31(%rbp), %rdi movq %rdi, -0xc8(%rbp) callq 0x21c970 movq -0xc8(%rbp), %rdx leaq 0xdf610(%rip), %rsi # 0x50d49f leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42de9a...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfTexture(tinygltf::Texture&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfTexture(Texture &texture, json &o) { if (texture.sampler > -1) { SerializeNumberProperty("sampler", texture.sampler, o); } if (texture.source > -1) { SerializeNumberProperty("source", texture.source, o); } if (texture.name.size()) { SerializeStringProperty("name", texture....
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax cmpl $-0x1, 0x20(%rax) jle 0x42e175 leaq -0x31(%rbp), %rdi movq %rdi, -0xc8(%rbp) callq 0x21c970 movq -0xc8(%rbp), %rdx leaq 0xdf21c(%rip), %rsi # 0x50d32b leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42e11...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfCamera(tinygltf::Camera const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfCamera(const Camera &camera, json &o) { SerializeStringProperty("type", camera.type, o); if (!camera.name.empty()) { SerializeStringProperty("name", camera.name, o); } if (camera.type.compare("orthographic") == 0) { json orthographic; SerializeGltfOrthographicCamera(camera....
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0x98(%rbp) callq 0x21c970 movq -0x98(%rbp), %rdx leaq 0xdc679(%rip), %rsi # 0x50adfa leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42e78c movq -0x8(%rbp), %rsi movq -0x10(%rbp), %rdx leaq -0x30(...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfLight(tinygltf::Light&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfLight(Light &light, json &o) { if (!light.name.empty()) SerializeStringProperty("name", light.name, o); SerializeNumberProperty("intensity", light.intensity, o); SerializeNumberProperty("range", light.range, o); SerializeNumberArrayProperty("color", light.color, o); SerializeStringPro...
pushq %rbp movq %rsp, %rbp subq $0x130, %rsp # imm = 0x130 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0x21b6b0 testb $0x1, %al jne 0x42ec25 leaq -0x31(%rbp), %rdi movq %rdi, -0x100(%rbp) callq 0x21c970 movq -0x100(%rbp), %rdx leaq 0xacfb3(%rip), %rsi # 0x4dbb75 leaq -0x30(%r...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
void tinygltf::SerializeNumberArrayProperty<double>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<double, std::allocator<double>> const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool,...
static void SerializeNumberArrayProperty(const std::string &key, const std::vector<T> &value, json &obj) { if (value.empty()) return; json ary; JsonReserveArray(ary, value.size()); for (const auto &s : value) { JsonPushBack(a...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x44cf60 testb $0x1, %al jne 0x42f096 jmp 0x42f09b jmp 0x42f18a xorl %eax, %eax movl %eax, %esi leaq -0x28(%rbp), %rdi movq %rdi, -0x70(%rbp) callq 0x3b8f40 movq -0x10(%rbp), %rdi...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfAnimationChannel(tinygltf::AnimationChannel&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfAnimationChannel(AnimationChannel &channel, json &o) { SerializeNumberProperty("sampler", channel.sampler, o); { json target; SerializeNumberProperty("node", channel.target_node, target); SerializeStringProperty("path", channel.target_path, target); JsonAddMember(o, "target...
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xd8(%rbp) callq 0x21c970 movq -0xd8(%rbp), %rdx leaq 0xde08a(%rip), %rsi # 0x50d32b leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42f2ac movq -0x8(%rbp), %rax movl (%rax), %esi movq -0x10(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfAnimationSampler(tinygltf::AnimationSampler&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfAnimationSampler(AnimationSampler &sampler, json &o) { SerializeNumberProperty("input", sampler.input, o); SerializeNumberProperty("output", sampler.output, o); SerializeStringProperty("interpolation", sampler.interpolation, o); if (sampler.extras.Type() != NULL_TYPE) { SerializeVa...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xc8(%rbp) callq 0x21c970 movq -0xc8(%rbp), %rdx leaq 0xd5f44(%rip), %rsi # 0x5054b5 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42f57c movq -0x8(%rbp), %rax movl (%rax), %esi movq -0x10(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfNormalTextureInfo(tinygltf::NormalTextureInfo&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfNormalTextureInfo(NormalTextureInfo &texinfo, json &o) { SerializeNumberProperty("index", texinfo.index, o); if (texinfo.texCoord != 0) { SerializeNumberProperty("texCoord", texinfo.texCoord, o); } if (!TINYGLTF_DOUBLE_EQUAL(texinfo.scale...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xc8(%rbp) callq 0x21c970 movq -0xc8(%rbp), %rdx leaq 0xddb81(%rip), %rsi # 0x50d3e2 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42f86c movq -0x8(%rbp), %rax movl (%rax), %esi movq -0x10(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfTextureInfo(tinygltf::TextureInfo&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfTextureInfo(TextureInfo &texinfo, json &o) { SerializeNumberProperty("index", texinfo.index, o); if (texinfo.texCoord != 0) { SerializeNumberProperty("texCoord", texinfo.texCoord, o); } if (texinfo.extras.Type() != NULL_TYPE) { SerializeValue("extras", texinfo.extras, o); } ...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xa0(%rbp) callq 0x21c970 movq -0xa0(%rbp), %rdx leaq 0xdd5e1(%rip), %rsi # 0x50d3e2 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x42fe0c movq -0x8(%rbp), %rax movl (%rax), %esi movq -0x10(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfPbrMetallicRoughness(tinygltf::PbrMetallicRoughness&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfPbrMetallicRoughness(PbrMetallicRoughness &pbr, json &o) { std::vector<double> default_baseColorFactor = {1.0, 1.0, 1.0, 1.0}; if (!Equals(pbr.baseColorFactor, default_baseColorFactor)) { SerializeNumberArrayProperty<double>("baseColorFactor...
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movups 0xdbc26(%rip), %xmm0 # 0x50bc10 movaps %xmm0, -0x50(%rbp) movups 0xdbc0b(%rip), %xmm0 # 0x50bc00 movaps %xmm0, -0x60(%rbp) leaq -0x60(%rbp), %rax movq %rax, -0x38(%rbp) movq $0x4, -0x30(%rbp) ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
void tinygltf::SerializeNumberArrayProperty<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<int, std::allocator<int>> const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, un...
static void SerializeNumberArrayProperty(const std::string &key, const std::vector<T> &value, json &obj) { if (value.empty()) return; json ary; JsonReserveArray(ary, value.size()); for (const auto &s : value) { JsonPushBack(a...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x44eea0 testb $0x1, %al jne 0x4304e6 jmp 0x4304eb jmp 0x4305da xorl %eax, %eax movl %eax, %esi leaq -0x28(%rbp), %rdi movq %rdi, -0x70(%rbp) callq 0x3b8f40 movq -0x10(%rbp), %rdi...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfOrthographicCamera(tinygltf::OrthographicCamera const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfOrthographicCamera(const OrthographicCamera &camera, json &o) { SerializeNumberProperty("zfar", camera.zfar, o); SerializeNumberProperty("znear", camera.znear, o); SerializeNumberProperty("xmag", camera.xmag, o); SerializeNumberProperty("ymag"...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xf0(%rbp) callq 0x21c970 movq -0xf0(%rbp), %rdx leaq 0xdcec5(%rip), %rsi # 0x50d4f6 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x43063c movq -0x8(%rbp), %rax movsd 0x...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfPerspectiveCamera(tinygltf::PerspectiveCamera const&, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>&)
static void SerializeGltfPerspectiveCamera(const PerspectiveCamera &camera, json &o) { SerializeNumberProperty("zfar", camera.zfar, o); SerializeNumberProperty("znear", camera.znear, o); if (camera.aspectRatio > 0) { SerializeNumberProperty("aspectRatio", camera.aspe...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0xf0(%rbp) callq 0x21c970 movq -0xf0(%rbp), %rdx leaq 0xdcbb5(%rip), %rsi # 0x50d4f6 leaq -0x30(%rbp), %rdi callq 0x21c5c0 jmp 0x43094c movq -0x8(%rbp), %rax movsd 0x...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::MimeToExt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static std::string MimeToExt(const std::string &mimeType) { if (mimeType == "image/jpeg") { return "jpg"; } else if (mimeType == "image/png") { return "png"; } else if (mimeType == "image/bmp") { return "bmp"; } else if (mimeType == "image/gif") { return "gif"; } return ""; }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x38(%rbp) movq %rdi, %rax movq %rax, -0x30(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rdi leaq 0xdb194(%rip), %rsi # 0x50c57a callq 0x246230 testb $0x1, %al jne 0x4313f1 jmp 0x43143c leaq -0x11(%rbp), %rdi movq %rdi, -0x40(%rbp) cal...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::SerializeGltfBufferData(std::vector<unsigned char, std::allocator<unsigned char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static bool SerializeGltfBufferData(const std::vector<unsigned char> &data, const std::string &binFilename) { std::ofstream output(binFilename.c_str(), std::ofstream::binary); if (!output.is_open()) return false; output.write(reinterpret_cast<const char *>(&data[0]), ...
pushq %rbp movq %rsp, %rbp subq $0x240, %rsp # imm = 0x240 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0x21b2a0 movq %rax, %rsi leaq -0x218(%rbp), %rdi movq %rdi, -0x238(%rbp) movl $0x4, %edx callq 0x21b7d0 movq -0x238(%rbp), %rdi callq 0x21c410 movb %al, -0x229(%rbp) jmp 0x431...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::GetComponentSizeInBytes(unsigned int)
static inline int32_t GetComponentSizeInBytes(uint32_t componentType) { if (componentType == TINYGLTF_COMPONENT_TYPE_BYTE) { return 1; } else if (componentType == TINYGLTF_COMPONENT_TYPE_UNSIGNED_BYTE) { return 1; } else if (componentType == TINYGLTF_COMPONENT_TYPE_SHORT) { return 2; } else if (comp...
pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) cmpl $0x1400, -0x8(%rbp) # imm = 0x1400 jne 0x4316dc movl $0x1, -0x4(%rbp) jmp 0x431761 cmpl $0x1401, -0x8(%rbp) # imm = 0x1401 jne 0x4316ee movl $0x1, -0x4(%rbp) jmp 0x431761 cmpl $0x1402, -0x8(%rbp) # imm = 0x1402 jne 0x431700 movl $0x2, -0x4(%rbp) jmp 0x43...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseUnsignedProperty(unsigned long*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_se...
static bool ParseUnsignedProperty(size_t *ret, std::string *err, const json &o, const std::string &property, const bool required, const std::string &parent_node = "") { json_const_iterator it; if (!FindMember(o, pr...
pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) andb $0x1, %al movb %al, -0x29(%rbp) movq %r9, -0x38(%rbp) leaq -0x58(%rbp), %rdi callq 0x443fa0 movq -0x20(%rbp), %rax movq %rax, -0x128(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::LoadExternalFile(std::vector<unsigned char, std::allocator<unsigned char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator...
static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err, std::string *warn, const std::string &filename, const std::string &basedir, bool required, size_t reqBytes, bool checkSize, FsCallbacks *fs) { if (fs =...
pushq %rbp movq %rsp, %rbp subq $0x420, %rsp # imm = 0x420 movl %r9d, %eax movq %rcx, -0x3c0(%rbp) movq %rdx, %rcx movq -0x3c0(%rbp), %rdx movq %rcx, -0x3b8(%rbp) movq %rsi, %rcx movq -0x3b8(%rbp), %rsi movq %rcx, -0x3b0(%rbp) movq %rdi, %r9 movq -0x3b0(%rbp), %rdi movb %al, %cl movq 0x20(%rbp), %rax movb 0x...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::FindFile(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, tinygltf::FsCallba...
static std::string FindFile(const std::vector<std::string> &paths, const std::string &filepath, FsCallbacks *fs) { if (fs == nullptr || fs->ExpandFilePath == nullptr || fs->FileExists == nullptr) { // Error, fs callback[s] missing return std::string(); } for (size_t i = ...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x70(%rbp) movq %rdi, %rax movq %rax, -0x68(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x433732 movq -0x20(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0x433732 movq -0x20(%rbp), %rax cmpq $0x0...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseIntegerProperty(int*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> c...
static bool ParseIntegerProperty(int *ret, std::string *err, const json &o, const std::string &property, const bool required, const std::string &parent_node = "") { json_const_iterator it; if (!FindMember(o, property....
pushq %rbp movq %rsp, %rbp subq $0x130, %rsp # imm = 0x130 movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) andb $0x1, %al movb %al, -0x29(%rbp) movq %r9, -0x38(%rbp) leaq -0x58(%rbp), %rdi callq 0x443fa0 movq -0x20(%rbp), %rax movq %rax, -0x118(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseAccessor(tinygltf::Accessor*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_seria...
static bool ParseAccessor(Accessor *accessor, std::string *err, const json &o) { int bufferView = -1; ParseIntegerProperty(&bufferView, err, o, "bufferView", false, "Accessor"); size_t byteOffset = 0; ParseUnsignedProperty(&byteOffset, err, o, "byteOffset", false, "Accessor"); bool normalized = false; Par...
pushq %rbp movq %rsp, %rbp subq $0x850, %rsp # imm = 0x850 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF movq -0x18(%rbp), %rax movq %rax, -0x6c0(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x6b8(%rbp) leaq -0x49(%rbp), %rdi movq %rdi, -0x6...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseBooleanProperty(bool*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> ...
static bool ParseBooleanProperty(bool *ret, std::string *err, const json &o, const std::string &property, const bool required, const std::string &parent_node = "") { json_const_iterator it; if (!FindMember(o, property...
pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movb %r8b, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) andb $0x1, %al movb %al, -0x29(%rbp) movq %r9, -0x38(%rbp) leaq -0x58(%rbp), %rdi callq 0x443fa0 movq -0x20(%rbp), %rax movq %rax, -0x120(%rbp)...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseSparseAccessor(tinygltf::Accessor*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl...
static bool ParseSparseAccessor(Accessor *accessor, std::string *err, const json &o) { accessor->sparse.isSparse = true; int count = 0; ParseIntegerProperty(&count, err, o, "count", true); json_const_iterator indices_iterator; json_const_iterator values_iterator; if (!FindM...
pushq %rbp movq %rsp, %rbp subq $0x340, %rsp # imm = 0x340 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movb $0x1, 0x114(%rax) movl $0x0, -0x24(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x298(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x290(%rbp) leaq -0x49(%rbp), ...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
tinygltf::ParseMesh(tinygltf::Mesh*, tinygltf::Model*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann:...
static bool ParseMesh(Mesh *mesh, Model *model, std::string *err, const json &o) { ParseStringProperty(&mesh->name, err, o, "name", false); mesh->primitives.clear(); json_const_iterator primObject; if (FindMember(o, "primitives", primObject) && IsArray(GetValue(primObject))) { j...
pushq %rbp movq %rsp, %rbp subq $0x2c0, %rsp # imm = 0x2C0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x268(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x260(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x258(%rbp) leaq -0x41(%rbp), %...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/tiny_gltf.h
nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::push_back(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::al...
void push_back(const basic_json& val) { // push_back only works for null objects or arrays if (JSON_UNLIKELY(not(is_null() or is_array()))) { JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()))); } // transform null objec...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x80(%rbp) callq 0x3d10e0 movb %al, %cl movb $0x1, %al testb $0x1, %cl movb %al, -0x71(%rbp) jne 0x44f298 movq -0x80(%rbp), %rdi callq 0x3c6710 movb %al, -0x71(%rbp) movb -0x71(%rbp), %al xorb $-0x...
/patriciogonzalezvivo[P]glslViewer/deps/vera/deps/tinygltf/json.hpp
vera::hasSmoothingGroup(tinyobj::shape_t const&)
bool hasSmoothingGroup(const tinyobj::shape_t& shape) { for (size_t i = 0; i < shape.mesh.smoothing_group_ids.size(); i++) if (shape.mesh.smoothing_group_ids[i] > 0) return true; return false; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi addq $0x20, %rdi addq $0x48, %rdi callq 0x304f50 movq %rax, %rcx movq -0x20(%rbp), %rax cmpq %rcx, %rax jae 0x473a49 movq -0x10(%rbp), %rdi addq $0x20, %rdi addq...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/io/obj.cpp
vera::computeSmoothingNormals(tinyobj::attrib_t const&, tinyobj::shape_t const&, std::map<int, glm::vec<3, float, (glm::qualifier)0>, std::less<int>, std::allocator<std::pair<int const, glm::vec<3, float, (glm::qualifier)0>>>>&)
void computeSmoothingNormals(const tinyobj::attrib_t& _attrib, const tinyobj::shape_t& _shape, std::map<int, glm::vec3>& smoothVertexNormals) { smoothVertexNormals.clear(); std::map<int, glm::vec3>::iterator iter; for (size_t f = 0; f < _shape.mesh.indices.size() / 3; f++) { // Get the three index...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0x47b1c0 leaq -0x20(%rbp), %rdi callq 0x47b1e0 movq $0x0, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x110(%rbp) movq -0x10(%rbp), %rdi addq $0x20, %...
/patriciogonzalezvivo[P]glslViewer/deps/vera/src/io/obj.cpp