Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
vertices_builder.cc File Reference
#include "impeller/scene/importer/vertices_builder.h"
#include <cstdint>
#include <cstring>
#include <limits>
#include <memory>
#include <type_traits>
#include "flutter/fml/logging.h"
#include "impeller/scene/importer/conversions.h"
#include "impeller/scene/importer/scene_flatbuffers.h"

Go to the source code of this file.

Namespaces

namespace  impeller
 
namespace  impeller::scene
 
namespace  impeller::scene::importer
 

Functions

template<typename SourceType >
static Scalar impeller::scene::importer::ToScalar (const void *source, size_t index, bool normalized)
 Reads a numeric component from source and returns a 32bit float. If normalized is true, signed SourceTypes convert to a range of -1 to 1, and unsigned SourceTypes convert to a range of 0 to 1.
 
static void impeller::scene::importer::PassthroughAttributeWriter (Scalar *destination, const void *source, const VerticesBuilder::ComponentProperties &component, const VerticesBuilder::AttributeProperties &attribute)
 A ComponentWriter which simply converts all of an attribute's components to normalized scalar form.
 
static void impeller::scene::importer::JointsAttributeWriter (Scalar *destination, const void *source, const VerticesBuilder::ComponentProperties &component, const VerticesBuilder::AttributeProperties &attribute)
 A ComponentWriter which converts four vertex indices to scalars.
 

Variables

static std::map< VerticesBuilder::ComponentType, VerticesBuilder::ComponentPropertiesimpeller::scene::importer::kComponentTypes