Changeset View
Changeset View
Standalone View
Standalone View
source/blender/usd/intern/usd_writer_hair.h
- This file was copied from extern/wcwidth/wcwidth.h.
| /* | /* | ||||
| * This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | ||||
| * modify it under the terms of the GNU General Public License | * modify it under the terms of the GNU General Public License | ||||
| * as published by the Free Software Foundation; either version 2 | * as published by the Free Software Foundation; either version 2 | ||||
| * of the License, or (at your option) any later version. | * of the License, or (at your option) any later version. | ||||
| * | * | ||||
| * This program is distributed in the hope that it will be useful, | * This program is distributed in the hope that it will be useful, | ||||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
| * GNU General Public License for more details. | * GNU General Public License for more details. | ||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * The Original Code is Copyright (C) 2013 Blender Foundation. | * The Original Code is Copyright (C) 2019 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| #ifndef __USD__USD_WRITER_HAIR_H__ | |||||
| #define __USD__USD_WRITER_HAIR_H__ | |||||
| #ifndef __WCWIDTH_H__ | #include "usd_writer_abstract.h" | ||||
| #define __WCWIDTH_H__ | |||||
| #include <wchar.h> | /* Writer for writing hair particle data as USD curves. */ | ||||
| class USDHairWriter : public USDAbstractWriter { | |||||
| public: | |||||
| USDHairWriter(const USDExporterContext &ctx); | |||||
| int mk_wcwidth(wchar_t ucs); | protected: | ||||
| int mk_wcswidth(const wchar_t *pwcs, size_t n); | virtual void do_write(HierarchyContext &context) override; | ||||
| int mk_wcwidth_cjk(wchar_t ucs); | virtual bool check_is_animated(const HierarchyContext &context) const override; | ||||
| int mk_wcswidth_cjk(const wchar_t *pwcs, size_t n); | }; | ||||
| #endif | #endif /* __USD__USD_WRITER_HAIR_H__ */ | ||||