﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.7%2FSource%2FChecklists%2FVector_Icon</id>
	<title>Dev:2.7/Source/Checklists/Vector Icon - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.7%2FSource%2FChecklists%2FVector_Icon"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.7/Source/Checklists/Vector_Icon&amp;action=history"/>
	<updated>2026-07-22T21:09:30Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.7/Source/Checklists/Vector_Icon&amp;diff=150935&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.7/Source/Checklists/Vector_Icon&amp;diff=150935&amp;oldid=prev"/>
		<updated>2018-06-28T21:16:10Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:16時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.7/Source/Checklists/Vector_Icon&amp;diff=150934&amp;oldid=prev</id>
		<title>wiki&gt;Aligorith: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.7/Source/Checklists/Vector_Icon&amp;diff=150934&amp;oldid=prev"/>
		<updated>2016-03-13T11:15:57Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Adding a new Vector Icon =&lt;br /&gt;
&amp;quot;Vector Icons&amp;quot; are special icons in Blender that are defined programmatically in C using OpenGL commands. They are not to be confused with the standard icons used all over the rest of the UI (see [[Dev:2.5/Doc/How_to/Add_an_icon|this page]] instead). They are currently only used for two special cases:&lt;br /&gt;
# When the icons in question need to be scaleable and have clear, sharp lines (e.g. dropdown arrows)&lt;br /&gt;
# When the appearance of the icons in question depend on the theme settings&lt;br /&gt;
&lt;br /&gt;
'''Note''': You should probably not be using this. These notes are just here in case anyone ever runs into the need to try whether these do what is needed.&lt;br /&gt;
&lt;br /&gt;
== Checklist ==&lt;br /&gt;
Assuming you've got an icon called &amp;lt;code&amp;gt;my_icon&amp;lt;/code&amp;gt;...&lt;br /&gt;
&lt;br /&gt;
=== editors/include/UI_icons.h ===&lt;br /&gt;
* '''&amp;quot;DEF_VICO&amp;quot; block at end of file''' - Add some DEF_VICO entries for your icon types there. e.g,&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    DEF_VICO(MY_ICON_VEC)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== editors/interface/interface_icons.c ===&lt;br /&gt;
* '''Just above &amp;quot;#ifndef WITH_HEADLESS&amp;quot; (above &amp;lt;code&amp;gt;init_brush_icons()&amp;lt;/code&amp;gt;)''' - Add a function for drawing your icon as follows:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    static void vicon_my_icon_draw(int x, int y, int w, int h, float alpha)&lt;br /&gt;
    {&lt;br /&gt;
        ... some OpenGL drawing commands here - See the others for examples of what to do and how ...&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''init_internal_icons()''' - Add a call to link the VICO identifier to the draw function:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    def_internal_vicon(VICON_MY_ICON_VEC, vicon_my_icon_draw);&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Use the icon by doing:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    VICO_MY_ICON&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
in your code, when you'd normally have used &amp;lt;code&amp;gt;ICON_*&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Aligorith</name></author>
		
	</entry>
</feed>