NcEngine
DefaultAssets.h File Reference
#include "ncasset/AssetType.h"
#include <span>
#include <string_view>

Go to the source code of this file.

Functions

Get names of all default assets of a particular type
auto nc::asset::GetDefaultAudioClipPaths () -> std::span< const std::string_view >
 
auto nc::asset::GetDefaultConvexHullPaths () -> std::span< const std::string_view >
 
auto nc::asset::GetDefaultCubeMapPaths () -> std::span< const std::string_view >
 
auto nc::asset::GetDefaultMeshPaths () -> std::span< const std::string_view >
 
auto nc::asset::GetDefaultMeshColliderPaths () -> std::span< const std::string_view >
 
auto nc::asset::GetDefaultSkeletalAnimationPaths () -> std::span< const std::string_view >
 
auto nc::asset::GetDefaultTexturePaths () -> std::span< const std::string_view >
 

Variables

constexpr auto nc::asset::PlaneMesh = "default/plane.nca"
 Name of the default plane mesh asset.
 
constexpr auto nc::asset::CubeMesh = "default/cube.nca"
 Name of the default cube mesh asset.
 
constexpr auto nc::asset::SphereMesh = "default/sphere.nca"
 Name of the default sphere mesh asset.
 
constexpr auto nc::asset::CapsuleMesh = "default/capsule.nca"
 Name of the default capsule mesh asset.
 
constexpr auto nc::asset::SkyboxMesh = "default/skybox.nca"
 Name of the default skybox mesh asset.
 
constexpr auto nc::asset::WheelMesh = "default/wheel.nca"
 Name of the default wheel mesh asset.
 
constexpr auto nc::asset::DefaultBaseColor = "default/color.nca"
 Name of the default base color texture asset.
 
constexpr auto nc::asset::DefaultNormal = "default/normal.nca"
 Name of the default normal texture asset.
 
constexpr auto nc::asset::DefaultParticle = "default/particle.nca"
 Name of the default particle texture asset.
 
constexpr auto nc::asset::DefaultSkeletalAnimation = "default/cube.nca"
 Name of the default skeletal animation asset; a spinning cube.
 
constexpr auto nc::asset::DefaultSkyboxCubeMap = "default/skybox.nca"
 Name of the default skybox cubemap asset.
 
constexpr auto nc::asset::DefaultAudioClip = "default/silence.nca"
 Name of the default empty audio clip asset.
 
constexpr auto nc::asset::DefaultMeshCollider = "default/plane.nca"
 Name of the default plane-shaped mesh collider asset.
 
constexpr auto nc::asset::DefaultConvexHull = "default/cube.nca"
 Name of the default cube-shaped convex hull asset.
 

Detailed Description

Note
Assets in this file are guaranteed to be loaded before each call to Scene::Load().