AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
TextureAtlasGenerator.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16#pragma once
17
19#include <agx/Math.h>
20#include <agx/Referenced.h>
22
23namespace agxUtil
24{
25
31 {
32 public:
33
49 static bool process(
50 const agx::Vec3Vector& vertices,
51 const agx::Vec3Vector& normals,
52 const agx::UInt32Vector& indices,
53 const agx::Vec2Vector& texCoordinates,
54
55 agx::Vec3Vector& out_vertices,
56 agx::Vec3Vector& out_normals,
57 agx::UInt32Vector& out_indices,
58 agx::Vec2Vector& out_texCoordinates
59 );
60
68 static bool process(agxCollide::RenderData* renderData);
69 };
70}
#define AGXPHYSICS_EXPORT
Class for storing rendering information for a Shape.
Definition RenderData.h:39
This class will take an input mesh and recompute texture coordinates to fit on a texture atlas.
static bool process(agxCollide::RenderData *renderData)
From the input data, it will build a texture atlas, recompute texture coordinates to the output data.
static bool process(const agx::Vec3Vector &vertices, const agx::Vec3Vector &normals, const agx::UInt32Vector &indices, const agx::Vec2Vector &texCoordinates, agx::Vec3Vector &out_vertices, agx::Vec3Vector &out_normals, agx::UInt32Vector &out_indices, agx::Vec2Vector &out_texCoordinates)
From the input data, it will build a texture atlas, recompute texture coordinates to the output data.
The agxUtil namespace contain classes and methods for utility functionality.